The Enterprise Server exposes the following special resources in the naming environment. Full administration details are provided in the following sections:
An external JNDI resource defines custom JNDI contexts and implements the javax.naming.spi.InitialContextFactory interface. There is no specific JNDI parent context for external JNDI resources, except for the standard java:comp/env/.
Create an external JNDI resource in one of these ways:
To create an external JNDI resource using the Admin Console, open the Resources component, open the JNDI component, and select External Resources. For details, click the Help button in the Admin Console.
To create an external JNDI resource, use the asadmin create-jndi-resource command. For details, see the Sun GlassFish Enterprise Server 2.1 Reference Manual.
A custom resource specifies a custom server-wide resource object factory that implements the javax.naming.spi.ObjectFactory interface. There is no specific JNDI parent context for external JNDI resources, except for the standard java:comp/env/.
Create a custom resource in one of these ways:
To create a custom resource using the Admin Console, open the Resources component, open the JNDI component, and select Custom Resources. For details, click the Help button in the Admin Console.
To create a custom resource, use the asadmin create-custom-resource command. For details, see the Sun GlassFish Enterprise Server 2.1 Reference Manual.