uCosminexus Application Server, Command Reference Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
cmx_register_resource (Register a resource) (For compatibility)
Format
- To register a resource adapter
cmx_register_resource [Common-arguments] -f RAR-file [-c Connector-property-file] [-replace]
- To register a JavaBeans resource
cmx_register_resource [Common-arguments] -f JAR-file -c JavaBeans-resource-property-file [-replace]
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
- If different display names are specified in the RAR file and the Connector property file, the resource adapter will be registered with the display name in the Connector property file. If the same display name is specified in the resource adapter and JavaBeans resource, an error occurs.
- This command is used for compatibility with the earlier versions. For the commands related to resource operations, we recommend that you use the server management commands in the version 08-00 and later versions.
All Rights Reserved. Copyright (C) 2012, 2015, Hitachi, Ltd.