cjgetappprop (get HITACHI Application Property)

Format

For an application

cjgetappprop [server-name] [-nameserver provider-URL]
      -name J2EE-application-name
      [-encoding code-set-name] -c Property File-path

For an EJB-JAR, WAR, or RAR file

cjgetappprop [server-name] [-nameserver provider-URL]
   -name J2EE-application-name -type {ejb|war|rar}
   -resname resource-display-name[/lower-resource-display-name]
   [-encoding code-set-name] -c Property File-path

For obtaining all information

cjgetappprop [server-name] [-nameserver provider-URL]
      -name J2EE-application-name -type all
      [-encoding code-set-name] -c Property File-path

Function

This command obtains properties of an application or resources (for an EJB-JAR file, the resources are EJB-JAR files, Session Bean, Entity Bean, or Message-driven Beans. For a WAR file, the resources are WAR files, servlet/JSP, or filters.) included in that application, or property of RAR file, and then generates a property File.

For the Property File used in setting up a J2EE application program and its resources, see the following locations:

For an application in exploded archive format, this command can be executed for a J2EE server that runs on the same host as the command execution host.

Arguments

server-name
Specifies the name of a connected J2EE server. If the server name is omitted, the host name is assumed.
-nameserver provider-URL
Specifies the access protocol for the CORBA Naming Service, the name of the host running the CORBA Naming Service, and the port number being used by the host. These items are specified in the following format:

protocol-name: : host-name: port-number

For details on the specification items, see 2.1(2) Provider URL.
-name J2EE-application-name
Specifies the name of the J2EE application that is to be retrieved.
-type {ejb|war|rar|all}
Specifies the type of resource to be retrieved:
  • ejb: EJB-JAR file or EJB file in an EJB-JAR file
  • war: WAR file, servlet/JSP in a WAR file, or filter
  • rar: RAR file
  • all: All information
-resname resource-display-name
Specifies the display name of the resource to be retrieved:
  • ejb-jar: EJB-JAR-file-display-name
  • ejb: EJB-JAR-file-display-name[/Enterprise Bean-display-name]
  • war: WAR-file-display-name
  • rar: RAR-file-display-name
  • Servlet/JSP: WAR-file-display-name[/servlet/JSP-display-name]
  • filter: WAR-file-display-name[/filter-display-name]
If the display name of the lower resource is not specified, the specifications become specifications for an EJB-JAR file or a WAR file.
-encoding encoding-name
Specifies the name of the code set to be used when the Property File is output. The following code set names can be specified:
  • UTF8
  • UTF-8
  • ASCII
  • US-ASCII
  • ISO-8859-1
  • EUC_JP
  • Shift_JIS
  • SJIS
  • windows-31j
  • MS932
  • Encoding name supported by JavaVM
If this argument is omitted, the name of JavaVM's default code set is used. To confirm the used encoding name, see the XML declaration in the first line of the property file that is acquired using the cjgetappprop command.

<?xml version="XML-standard-version-number" encoding="code-set-name"?>

-c Property File-path
Specifies the output destination path of the Property File.

Input examples

For an application

cjgetappprop MyServer -name App1 -encoding Shift_JIS -c App1Prop.xml

For an EJB-JAR file

cjgetappprop MyServer -name App1 -type ejb -resname accountJsp/MyAccount -encoding UTF-8 -c MyAccountProp.xml

For a WAR file

cjgetappprop MyServer -name App1 -type war -resname account-war/Account -c AccountProp.xml

For a RAR file

cjgetappprop MyServer -name App1 -type rar -resname account-rar -c AccountProp.xml

For obtaining all information

cjgetappprop MyServer -name App1 -type all -encoding Shift_JIS -c App1AllProp.xml

Return values

0:
The command terminated normally.
1:
The command terminated abnormally.
2:
The command could not be executed because of an exclusion error.
3:
A timeout occurred.
9:
The command could not be executed because there are no administrator privileges (in Windows Server 2012, Windows Server 2008, Windows 8, Windows 7, or Windows Vista).

Notes