cjgetrarprop (get RAR file Property)
- Organization of this page
Format
cjgetrarprop [server-name] [-nameserver provider-URL] -resname resource-adapter-display-name [-encoding code-set-name] -c Property-file-path
Function
This command obtains the property of RAR file deployed as the J2EE resource specified by -resname, and generates a property file.
The Property of a RAR file is set in a Connector Property File. For the HITACHI Connector Property Files, see 4.1 HITACHI Connector Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
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.
- -resname resource-adapter-display-name
-
Specifies the display name of the resource (deployed resource adapter) that is to be retrieved.
- -encoding code-set-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
-
Code sets supported by JavaVM
If this argument is omitted, the default-encoding name of JavaVM is used. To confirm the used encoding name, see the XML declaration in the first line of the property file acquired with the cjgetrarprop 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
cjgetrarprop MyServer -resname account-rar -encoding Shift_JIS -c MyRarprop.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).
Notes
-
When you specify a server name in the command arguments, you must specify it immediately after the command name. You can specify the other arguments in any order as long as they are subsequent to the server name (or subsequent to the command name if the server name is omitted). However, you cannot switch the sequence of an option name and its corresponding value (for example, you cannot specify resource-adapter-display-name -resname); also, you cannot specify an option name in conjunction with a non-corresponding value (for example, you cannot specify -resname Property-file-path -c resource-adapter-display-name).
-
When you specify a server name in the command arguments, you must specify a case-sensitive character string that matches a server name specified in a cjsetup (set up or unsetup J2EE server).
-
If a property file already exists in the specified path, it is overwritten.