You can register a custom resource with the instance by performing this task.
Click Configurations tab and select the configuration from the list.
Click Java > Resources tab.
Under Custom Resource, click New.
The following table describes the properties available for creating a custom resource.
Table 11–3 Custom Resources Properties
Property |
Description |
---|---|
JNDI Name |
Provides a unique JNDI name for the custom resource. |
Enabled |
Determines if this custom resource is enabled at runtime. |
Resource Type |
Fully qualified type of resource. |
Factory Class |
Class that instantiates resources of this type. The fully qualified name of the user-written factory class that implements the javax.naming.spi.ObjectFactory. |
Description |
Provide a short description for the custom resource. |
Properties |
Provides CLI properties. Click Add Property to use. |
Using CLI
To create a custom resource through CLI, execute the following command:
wadm> create-custom-resource --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --res-type=samples.jndi.customResource.MyBean --factory-class=samples.jndi.customResource.MyCustomConnectionFactory custom |
See CLI Reference, create-custom-resource(1).