JMS destinations are Java EE resources that can be created and managed through the Sun Java System Web Server.
Many internet applications require the ability to send email notifications. The Java EE platform includes the JavaMail API along with a JavaMail service provider that enables an application component to send internet mail.
Click the Configuration tab to view the list of configurations and select the configuration you need.
Click Java > Resources tab.
Under Mail Resource, click New.
The following table describes the properties available while adding a new mail resource.
Table 11–5 Mail Resource Properties
Property |
Description |
---|---|
JNDI Name |
Provides a unique name for the new mail resource. |
Enabled |
Determines if this mail resource is enabled at runtime. |
User |
Valid user name registered in the mail server. |
From |
Email address from which the server sends mail. |
Host |
Host name/IP address of the mail server. |
Store Protocol |
Protocol used to retrieve messages. |
Store Protocol Class |
Storage service provider implementation for store-protocol. Fully qualified class name of a class that implements store-protocol. The default class is com.sun.mail.imap.IMAPStore. |
Transport Protocol |
Protocol used to send messages. |
Transport Protocol Class |
Transport service provider implementation for transport-protocol. Fully qualified class name of a class that implements transport-protocol. The default class is com.sun.mail.smtp.SMTPTransport. |
Using CLI
To create a mail resource, execute the following command:
wadm> create-mail-resource --config=test --server-host=localhost --mail-user=nobody --from=xyz@foo.com mail/Session |
See CLI Reference, create-mail-resource(1).