Java Reference
In-Depth Information
Running the async Example
You can use either NetBeans IDE or Ant to build, package, deploy, and run the async
example. First, however, you must configure the keystore and truststore.
To Configure the Keystore and Truststore in GlassFish Server
The GlassFish Server domain needs to be configured with the server's master password
to access the keystore and truststore used to initiate secure communications using the
SMTPS transport protocol.
1. Open the GlassFish Server Administration Console in a web browser at ht-
tp://localhost:4848 .
2. Expand Configurations, then expand server-config, then click JVM Settings.
3. Click JVM Options, then click Add JVM Option and enter -
Djavax.net.ssl.keyStorePassword= master-password , replacing
master-password with the keystore master password. The default master pass-
word is changeit .
4. Click Add JVM Option and enter -
Djavax.net.ssl.trustStorePassword= master-password , replacing
master-password with the truststore master password. The default master
password is changeit.
5. Click Save, then restart GlassFish Server.
To Run the async Example Using NetBeans IDE
Before You Begin
Before running this example, you must configure your GlassFish Server
instance to access the keystore and truststore used by GlassFish Server
to create a secure connection to the target SMTPS server.
1. From the File menu, choose Open Project.
2. In the Open Project dialog, navigate to:
tut-install /examples/ejb/
3. Select the async folder and click Open Project.
4. Under async in the project pane, expand the Server Resources node and
double-click glassfish-resources.xml.
Search WWH ::




Custom Search