6.2.2 Defining the HITACHI JavaBeans Resource Properties
Define the HITACHI JavaBeans Resource Properties.
For an overview of property setting procedures, see 3.5 Property settings using the property file. This subsection describes the definition of the following HITACHI JavaBeans Resource Properties:
- Organization of this subsection
(1) Property file to be edited
HITACHI JavaBeans Resource Property File
(2) Acquiring the property file to be edited and setting up the attributes
-
Acquiring the property file
Execute the following command to acquire a HITACHI JavaBeans Resource Property File:
- Execution format
cjgetjbprop [server-name] [-nameserver provider-URL] -resname display-name-of-JavaBeans-resource -c path-of-the-hitachi-JavaBeans-resource-property-file
- Example of execution
cjgetjbprop MyServer -resname MyJavaBeansName -c MyJavaBeansProp.xml
-
Setting up the attributes
You execute the following command to apply the values of the HITACHI JavaBeans Resource Property File:
- Execution format
cjsetjbprop [server-name] [-nameserver provider-URL] -resname display-name-of-JavaBeans-resource -c path-of-the-hitachi-JavaBeans-resource-property-file
- Example of execution
cjsetjbprop MyServer -resname MyJavaBeansName -c MyJavaBeansProp.xml
(3) Attribute settings to be edited
The property settings for the JavaBeans resources are as follows:
-
Runtime properties
-
Optional name information
(a) Runtime properties
The following table describes the settings for the runtime properties (<property> tag) of the JavaBeans resources:
Item |
Corresponding tags |
---|---|
Property name |
<property-name> |
Property data type |
<property-type> |
Property value |
<property-value> |
Repeat the above settings for all the properties to be defined.
You specify the method names of the set method and get method of the JavaBeans resources in the settings of the property name (<property-name>). For details on the settings of the property name (<property-name>), see 4.1.12 Properties that you can specify for the <property> tag in the uCosminexus Application Server Application and Resource Definition Reference Guide.
(b) Optional name information
Specify the optional name (<optional-name>) in the optional name information (<resource-env-external-property> tag) of JavaBeans resources.
For details on how to use the optional names of JavaBeans resources, see 6.5 Referencing and changing the J2EE resource names registered in the JNDI name space.