The custom-resource element configures a resource implemented by a custom Java class. This element may appear zero or more times within the server element. For more information, see server.
The custom-resource element can contain the following subelements:
Table 3–13 List of custom-resource Subelements
Element |
Occurrences |
Description |
---|---|---|
enabled |
0 or 1 |
Determines whether the custom resource is enabled at runtime. The default value is true. |
jndi-name |
1 |
The JNDI name of the custom resource. |
res-type |
1 |
The type of custom resource. The value is a class name. |
factory-class |
1 |
The class that instantiates a naming context which is used to look up the external resource. The value is a name of a class that implements javax.naming.spi.ObjectFactory. |
property |
0 or more |
Configures the optional resource-specific properties. For more details, see property. |
description |
0 or 1 |
The description of the custom resource. The value of this element is in text format. |