JavaMail Session: General Attributes

See Also

You see this page of the New File wizard when you are defining a JavaMail Session resource. On this page you specify general and advanced configuration information for a JavaMail Session resource and specify the JNDI name of the resource.

Use this page as follows:

  1. Supply the general information for the resource. The following information is required and must be supplied before you can Finish or proceed to the next screen:
  2. Advanced information is optional. It is best to leave the advanced settings at their default values unless the Application Server's mail provider has been reconfigured to use a nondefault store or transport protocol.
  3. Click Finish to create the resource.
    Click Next to proceed to the advanced properties screen.

When you complete the wizard, the resource properties are added to sun-resources.xml. If you need to edit the properties of the resource, you can open sun-resources.xml in the Source Editor by expanding the Server Resources node of your project in the Projects window and double-clicking the file.

Once you have created the object in your project, the resource needs to be registered with the server before you can use it. The resource is automatically registered when you deploy your project.

After the resource is registered, the resource appears in the JavaMail Sessions node under the Resources node for the server instance in the Services window.

For more on the Sun JavaMail API, see:

See Also
Defining a JavaMail Session resource

Legal Notices