Hitachi

uCosminexus Application Server Command Reference Guide


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