cjimportjb (import JavaBeans resource)
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 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 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 Server 2012, Windows Server 2008, Windows 8, Windows 7, or Windows Vista).
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.