cmx_register_resource (Register a resource) (For compatibility)

Format

Function

This command registers resource adapters or JavaBeans resources in the domain managed by Management Server.

If a resource with the same display name as the display name of the resource adapter or the JavaBeans resource specified in the argument of the -f option is already registered, you can specify the -replace option to re-register the resource adapter or the JavaBeans resource.

Arguments

-f RAR-file-or-JAR-file
Specifies the RAR file path of the resource adapter or the JAR file path of the JavaBeans resource to be registered.
-c Connector-property-file-or-JavaBeans-resource-property-file
Specifies the path of the Connector property file of the resource adapter or the path of the JavaBeans resource property file to be registered. When you register a JavaBeans resource, make sure that you specify the JavaBeans resource property file in the -c option.
-replace
Specify this option to re-register the resource.

Input examples

cmx_register_resource -f App1.rar -replace

Return values

0:
The command terminated normally.
1:
The command terminated with a warning.
64:
The command terminated abnormally.

Notes