This option lets you create an external Java Naming and Directory Interface (JNDI) resource. You need aNDI resource to access resources stored in an external JNDI repository.
Select the configuration.
Select the configuration from the configuration list. Click Configurations tab to get the list.
Click on Java > Resources tab.
Click New button under External JNDI section.
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 external JNDI resource. |
Properties |
Optionally provide CLI properties by clicking Add Property button. |
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).