You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Using this validator, `StatsisticsPrinter` is validated in the following sequence of operations:
287
287
288
-
1. `StatisticsPrinter` is validated.
289
-
a. The members of `StatisticsPrinter` that need cascading validation are validated.
290
-
b. For container types, value extractor is determined. In the case of `StatsCalculator`, `ExtractorForStatsCalculator` is found and then values are retrieved for validation.
291
-
c. `StatsCalculator` and its members such as `List` are validated.
292
-
i. In-built `ValueExtractor` for `java.util.List` is used to retrieve the values of elements of the list and the validated. In this case, Employee and the field "phone" that is annotated with `@USPhoneNumber` constraint is validated.
288
+
. `StatisticsPrinter` is validated.
289
+
.. The members of `StatisticsPrinter` that need cascading validation are validated.
290
+
.. For container types, value extractor is determined. In the case of `StatsCalculator`, `ExtractorForStatsCalculator` is found and then values are retrieved for validation.
291
+
.. `StatsCalculator` and its members such as `List` are validated.
292
+
.. In-built `ValueExtractor` for `java.util.List` is used to retrieve the values of elements of the list and the validated. In this case, Employee and the field "phone" that is annotated with `@USPhoneNumber` constraint is validated.
Copy file name to clipboardExpand all lines: src/main/asciidoc/cdi-bootstrap-se8/cdi-bootstrap-se8.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
=== Bootstrapping a CDI Container in Java SE
2
-
3
1
[[bootstrapping-a-cdi-container-in-java-se]]
4
2
3
+
=== Bootstrapping a CDI Container in Java SE
4
+
5
5
This chapter explains how to use the API for bootstrapping a CDI container in Java SE. This capability allows you to run CDI applications on Java SE and obtain beans, independently of an application server or any Jakarta EE APIs.
6
6
7
7
For more information about bootstrapping a CDI container in Java SE, see the _Weld Reference Guide_ at `http://weld.cdi-spec.org/documentation/`.
====== To Run the async Example Application Using NetBeans IDE
109
109
110
-
1. Make sure that GlassFish Server has been started (see
111
-
link:#BNADI[Starting and Stopping GlassFish
112
-
Server]).
113
-
2. From the File menu, choose Open Project.
114
-
3. In the Open Project dialog box, navigate to:
110
+
. Make sure that GlassFish Server has been started (see link:#BNADI[Starting and Stopping GlassFish Server]).
111
+
. From the File menu, choose Open Project.
112
+
. In the Open Project dialog box, navigate to:
115
113
+
116
114
[source,java]
117
115
----
118
116
tut-install/examples/ejb
119
117
----
120
-
4. Select the `async` folder, select Open Required Projects, and click
121
-
Open Project.
122
-
5. In the Projects tab, right-click the `async-smtpd` project and
123
-
select Run.
118
+
. Select the `async` folder, select Open Required Projects, and click Open Project.
119
+
. In the Projects tab, right-click the `async-smtpd` project and select Run.
124
120
+
125
-
The SMTP server simulator starts accepting connections. The async-smptd
126
-
output tab shows the following message:
121
+
The SMTP server simulator starts accepting connections. The async-smptd output tab shows the following message:
127
122
+
128
123
[source,java]
129
124
----
130
125
[Test SMTP server listening on port 3025]
131
126
----
132
-
6. In the Projects tab, right-click the `async-war` project and select
133
-
Build.
127
+
. In the Projects tab, right-click the `async-war` project and select Build.
134
128
+
135
-
This command configures the Jakarta Mail resource using a GlassFish Server
136
-
administrative command and builds, packages, and deploys the `async-war`
137
-
module.
138
-
7. Open the following URL in a web browser window:
129
+
This command configures the Jakarta Mail resource using a GlassFish Server administrative command and builds, packages, and deploys the `async-war` module.
130
+
. Open the following URL in a web browser window:
139
131
+
140
132
[source,java]
141
133
----
142
134
http://localhost:8080/async-war
143
135
----
144
-
8. In the web browser window, enter an email address and click Send
145
-
email.
136
+
. In the web browser window, enter an email address and click Send email.
146
137
+
147
-
The `MailerBean` stateless bean uses the Jakarta Mail API to deliver an
148
-
email to the SMTP server simulator. The async-smptd output window in
149
-
NetBeans IDE shows the resulting email message, including its headers.
150
-
9. To stop the SMTP server simulator, click the X button on the right
151
-
side of the status bar in NetBeans IDE.
152
-
10. Delete the Jakarta Mail session resource.
153
-
1. In the Services tab, expand the Servers node, then expand the
154
-
GlassFish Server server node.
155
-
2. Expand the Resources node, then expand the Jakarta Mail Sessions node.
156
-
3. Right-click mail/myExampleSession and select Unregister.
138
+
The `MailerBean` stateless bean uses the Jakarta Mail API to deliver an email to the SMTP server simulator. The async-smptd output window in NetBeans IDE shows the resulting email message, including its headers.
139
+
. To stop the SMTP server simulator, click the X button on the right side of the status bar in NetBeans IDE.
140
+
. Delete the Jakarta Mail session resource.
141
+
.. In the Services tab, expand the Servers node, then expand the GlassFish Server server node.
142
+
.. Expand the Resources node, then expand the Jakarta Mail Sessions node.
143
+
.. Right-click mail/myExampleSession and select Unregister.
Copy file name to clipboardExpand all lines: src/main/asciidoc/jms-examples/jms-examples008.adoc
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -266,9 +266,7 @@ To view the bean output,
266
266
----
267
267
+
268
268
The output from the enterprise beans appears in the server log file. The
269
-
Publisher session bean sends two sets of 18 messages numbered 0 through
270
-
17. Because of the message selector, the message-driven bean receives
271
-
only the messages whose `NewsType` property is `Sports` or `Opinion`.
269
+
Publisher session bean sends two sets of 18 messages numbered 0 through 17. Because of the message selector, the message-driven bean receives only the messages whose `NewsType` property is `Sports` or `Opinion`.
272
270
4. Undeploy the application after you have finished running it:
===== Components of the jsonbbasics Example Application
@@ -24,7 +24,7 @@ The `jsonbbasics` example application contains the following files.
24
24
** The `jsongenerated.xhtml` page contains a text area that displays the data in JSON format.
25
25
* The `jsonbBean.java` managed bean, which is a session-scoped managed bean that stores the data from the form and directs the navigation between the Facelets pages. This file contains code that uses the JSON Binding API.
26
26
27
-
[[running-the-jsonbbasics-example-application]]
27
+
[[running-the-jsonbbasics-example-application-2]]
28
28
===== Running the jsonbbasics Example Application
29
29
30
30
This section describes how to run the `jsonbbasics` example application
0 commit comments