9.2.1 Setting procedure
You can acquire the HITACHI Application Integrated Property File by using the server management commands and collectively edit the contents of specific attribute files.
The specific attribute file elements included in the HITACHI Application Integrated Property File are described below:
-
Application attribute file
(hitachi-application-property/hitachi-application-property)
-
EJB-JAR attribute file
(hitachi-ejb-jar-property/hitachi-ejb-jar-property)
-
Session Bean attribute file
hitachi-session-bean-property/hitachi-session-bean-property
-
Entity Bean attribute file
hitachi-entity-bean-property/hitachi-entity-bean-property
-
Message-driven Bean attribute file
hitachi-message-bean-property/hitachi-message-bean-property
-
WAR attribute file
hitachi-war-property/hitachi-war-property
-
Filter attribute file
hitachi-filter-property/hitachi-filter-property
-
Servlet attribute file
hitachi-servlet-property/hitachi-servlet-property
-
HITACHI Connector Property File
hitachi-connector-property/hitachi-connector-property
For details on the HITACHI Application Integrated Property File, see 3.1 HITACHI Application Integrated Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
The following sections describe the procedures for setting the J2EE application properties by using the HITACHI Application Integrated Property File:
- Organization of this subsection
(1) Acquiring the HITACHI Application Integrated Property File
To acquire the HITACHI Application Integrated Property File, specify the path of the HITACHI Application Integrated Property File and execute the cjgetappprop command.
- Execution Format
cjgetappprop server-name -name J2EE application-name -type all -c path-of-the-HITACHI Application Integrated Property File
- Example of execution
cjgetappprop Myserver -name App1 -type all -c App1prop.xml
(2) Editing the property settings
Edit the HITACHI Application Integrated Property File that is output in (1) above with a text editor. For the items to be edited in the J2EE application properties, see 9.1 Overview of the property settings of J2EE applications. The items edited in the HITACHI Application Integrated Property File are the same as the items edited in the specific attribute files.
(3) Setting the application attributes
To apply the items specified in the HITACHI Application Integrated Property File to the application attributes, execute the cjsetappprop command.
- Execution Format
cjsetappprop server-name -name J2EE application-name -type all -c path-of-the-HITACHI Application Integrated Property File
- Example of execution
cjsetappprop MyServer -name App1 -type all -c App1Prop.xml