Edit the List of Resource References

In the Resource Ref's tabbed pane, you can edit the list of that your .war file references.

To add a resource reference:

  1. Click Add.
  2. Enter the in the Coded Name column. For example, if the JNDI lookup of a DataSource resource is java:comp/env/jdbc/TheDataSource, enter jdbc/TheDataSource.
  3. Select the from the drop-down menu in the Type column.
  4. Select either Application or Container from the drop-down menu in the Authentication column to indicate whether authentication of resource users is managed by the application or the container.
  5. Provide a description of each resource in the Description field.
  6. For each resource reference in the list, enter the JNDI name of the resource factory into the JNDI Name field. The JNDI name is used by the client to locate the resource at runtime.
  7. If you are adding a URL or DataSource resource and the resource requires a user name and password, enter them in the User Name and Password fields. The Cloudscape DBMS included with this release does not require a user name and password.
  8. If you are adding a Mail Session resource:
    1. Enter the return address of the current user in the From field.
    2. Enter the name of the mail server in the Host field.
    3. Enter the name to use when connecting to the mail server in the User Name field.
To edit the: To delete a reference, select the row containing the reference and click Delete. A confirmation dialog will ask you if you really want to delete the reference.

See Also:

Declare Resource References
Enter JNDI Names
Enter Missing JNDI Names


Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.