Sun Java System Web Server 6.1 SP12 Administrator's Guide

Creating External JNDI Resources

You can create an external resource in the following ways:

Using the Administration Interface

ProcedureTo create external JNDI resources using the administration interface

  1. Access the Server Manager and choose the Java tab.

  2. Click External JNDI Resources.

  3. Click the New button.

  4. Enter the following information:

    • JNDI Name (required). Enter the JNDI name that application components must use to access the custom resource.

      • Resource Type (required). Enter the fully qualified type of the custom resource.

      • Factory Class (required). Enter the fully qualified name of the user-written factory class, which implements javax.naming.spi.ObjectFactory.

      • JNDI Lookup (required). Enter the JNDI value to look up in the external repository. For example, if you are creating an external resource to connect to an external repository, to test a mail class, your JNDI Lookup could read cn=testmail.

      • External Resource Enabled (optional). Select On to enable the external resource at runtime.

  5. Click OK.

  6. Click Apply Changes.

Using the Command Line Interface

For information on how to use the command-line interface to create a new custom resource, see Create External JNDI Resource in Appendix A, Command Line Utilities.