Java Mail Resources

Java Mail enables an application on the Sun One Application Server to send and receive e-mails, and it supports different message stores such as POP3 and IMAP, as well as different transport protocols, such as SMTP. To use Java Mail, create a Java Mail resource definition, and register the definition to the Sun ONE Application Server instance. More than one J2EE component can use the same Java Mail resource.

Creating a Java Mail Resource Definition

To create a Java Mail resource definition:

  1. In the Explorer's Runtime tab, expand the Server Registry and expand Installed Servers and expand Sun ONE Application Server 7 node.

    note  If you do not see any Administration Server nodes, the Administration Server of the Sun ONE Application Server must be added under the Installed Servers subnode of the Server Registry node. See here for more information.

  2. Right-click the Unregistered Java Mail Resources node and choose Add New Mail Resource.
  3. Enter properties for the Java Mail resource definition. See Java Mail Resource Property Sheet for more information.
  4. Once the definition is created, you must register it to the application server instance where you want to create the Java Mail resource. See Registering a Java Mail Resource Definition for more information.

Registering a Java Mail Resource Definition

To register a Java Mail resource definition to an application server instance:

  1. In the Explorer's Runtime tab, expand the Server Registry and expand Installed Servers and expand Sun ONE Application Server 7 and expand Unregistered Java Mail Resources node.
  2. Select the Java Mail resource definition that you want to register and choose Register. The Select Server to Register to dialog box opens.
  3. Select the application server instance where you want to create the Java Mail resource and click Register. The Information dialog box opens.
  4. Click OK to close the Information dialog box.
  5. Click OK to close the Select Server to Register to dialog box.
  6. To see the new Java Mail Resource, expand the application server instance and expand Registered Java Mail Resources node.

Deleting a Java Mail Resource

To delete a Java Mail resource from an application server instance:

  1. In the Explorer's Runtime tab, expand the Server Registry and expand Installed Servers and expand Sun ONE Application Server 7 and expand Administration Server and expand application server instance and expand Registered Java Mail Resources node.
  2. Right-click the Java Mail resource and choose Delete.
  3. When the application server instance is restarted, the Java Mail resource is removed. See Server Instance for stopping and starting the application server instance.

See also
   Java Mail Resource Property Sheet
Registering a Resource
Server Instance

Legal Notices