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:
-
In the Explorer's Runtime tab,
expand the Server Registry
Installed Servers
Sun ONE Application Server 7 node.
|
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.
|
-
Right-click the Unregistered Java Mail Resources node
and choose Add New Mail Resource.
-
Enter properties for the Java Mail resource definition.
See Java Mail Resource Property Sheet
for more information.
-
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:
-
In the Explorer's Runtime tab,
expand the Server Registry
Installed Servers
Sun ONE Application Server 7
Unregistered Java Mail Resources node.
-
Select the Java Mail resource definition
that you want to register and choose Register.
The Select Server to Register to dialog box opens.
-
Select the application server instance where
you want to create the Java Mail resource
and click Register.
The Information dialog box opens.
-
Click OK to close the Information dialog box.
-
Click OK to close the Select Server to Register to
dialog box.
-
To see the new Java Mail Resource,
expand the application server instance
Registered Java Mail Resources node.
Deleting a Java Mail Resource
To delete a Java Mail resource from
an application server instance:
-
In the Explorer's Runtime tab,
expand the Server Registry
Installed Servers
Sun ONE Application Server 7
Administration Server
application server instance
Registered Java Mail Resources node.
-
Right-click the Java Mail resource
and choose Delete.
-
When the application server instance is restarted,
the Java Mail resource is removed.
See Server Instance
for stopping and starting
the application server instance.
Legal Notices