cjimportjb (import JavaBeans resource)
- Organization of this page
Format
- For importing a JavaBeans resource
cjimportjb [server-name] [-nameserver provider-URL] -f JAR-file-path -c Property-file-path
- For importing a class of JavaBeans resources found in a specified directory
cjimportjb [server-name] [-nameserver provider-URL] -d path-of-directory-containing-class-of-JavaBeans-resources -c Property-file-path
Function
- For importing a JavaBeans resource
-
This command imports a JavaBeans resource.
A JavaBeans resource with the same display name or implementation class name as a previously imported JavaBeans resource cannot be imported.
The command imports the JavaBeans resource and sets the values specified in a property file.
For details on the JavaBeans Resource Property files, see 4.2 HITACHI JavaBeans Resource Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
- For importing a class of JavaBeans resources found in a specified directory
-
This command imports the class of JavaBeans resources found in the specified directory.
A JavaBeans resource that has the same display name or implementation class name as a previously imported JavaBeans resource cannot be imported.
The command imports the JavaBeans resources and sets the values specified in a property file.
For details on the JavaBeans Resource Property files, see 4.2 HITACHI JavaBeans Resource 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.
- -f JAR-file-path
-
Specifies the path of the file (JAR file that contains the JavaBeans resource) that is to be read.
- -d path-of-directory-containing-class-of-JavaBeans-resources
-
Specifies the path of the directory containing a class of JavaBeans resources.
All JavaBeans resources found in the specified directory are imported.
- -c Property-file-path
-
Specifies the file path of the input source property file.
Input examples
- Format 1
cjimportjb MyServer -f Myjavabeans.jar -c Myjavabeansprop.xml
- Format 2
cjimportjb MyServer -d MydirectoryPath -c Myjavabeansprop.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 error 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 application-name -name); also, you cannot specify an option name in conjunction with a non-corresponding value (for example, you cannot specify -f Property-file-path -c JAR-file-path).
-
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 the display name of the JavaBeans resource has more than 240 characters, an error will occur.
-
A Java heap of approximately three times the file size specified in the argument is temporarily used. When the value three times the file size exceeds the estimated value of the Java heap of the J2EE server, you must specify a value of three times the file size, in the size of the Java heap of the J2EE server.