Sun Java System Web Server 7.0 Administrator's Guide

Working With External JNDI Resources

Creating External JNDI Resources

This option lets you create an external Java Naming and Directory Interface (JNDI) resource. You need an external JNDI resource to access resources stored in an internal JNDI repository.

ProcedureTo Add an External JNDI Resource

  1. Select the configuration.

    Select the configuration from the configuration list. Click Configurations tab to get the list.

  2. Click on Java > Resources tab.

  3. Click New button under External JNDI section.

Properties for External JNDI Resources

The following table describes the properties available while adding a new external JNDI resource.

Table 11–4 External JNDI Resources Properties

Property

Description

JNDI Name

Provide a unique name for the new external JNDI resource. 

Enabled

Determines if this external JNDI resource is enabled at runtime. 

External JNDI Name

Name of the external JNDI resource. 

Resource Type

Fully qualified type of this resource. 

Factory Class

Class that instantiates resources of this type. 

Description

Provide a short description for the custom resource. 

Properties

Optionally provide CLI properties by clicking Add Property button. 


Note –

Using CLI

For creating an external JNDI resource through CLI, execute the following command:


wadm> create-external-jndi-resource --user=admin 
--password-file=admin.pwd --host=serverhost --port=8989 --config=config1 
--res-type=org.apache.naming.resources.Resource 
--factory-class=samples.jndi.externalResource.MyExternalConnectionFactory 
--jndilookupname=index.html external-jndi

See CLI Reference, create-external-jndi-resource(1).