This option lets you create an external Java Naming and Directory Interface (JNDI) resource. You need a JNDI resource to access resources stored in an external JNDI repository.
Click the Configuration tab and select the configuration from the list.
Click Java > Resources tab.
Under External JNDI, click New.
The following table describes the properties available when adding a new external JNDI resource.
Table 11–4 External JNDI Resources Properties
Property |
Description |
---|---|
JNDI Name |
Provides 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 resource. |
Factory Class |
Class that instantiates resources of this type. |
Description |
Provides a short description for the external JNDI resource. |
Properties |
Optionally provides CLI properties. Enabled by clicking the Add Property button. |
Using CLI
To create 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).