cmx_undefine_resource (Disassociate resources and Web systems) (For compatibility)
Format
- To delete the association of a resource adapter
cmx_undefine_resource [Common-arguments] [-s web-system-name] -resname resource-adapter-display-name
- To delete the association of a JavaBeans resource
cmx_undefine_resource [Common-arguments] [-s web-system-name] -resname JavaBeans-resource-display-name
Function
This command deletes the association between resource adapters or JavaBeans resources and Web systems.
Arguments
- -s web-system-name
- Specifies the Web system name.
- If you omit this option, the value set in the cmx.websystem.name key of the .cmxrc file or the cmxclient.properties file will be used. Note that if the cmx.websystem.name key is not specified in the .cmxrc file and the cmxclient.properties file and if you execute the cmx_undefine_resource command by omitting the -s option, an error occurs.
- -resname resource-adapter-display-name-or-JavaBeans-resource-display-name
- Specifies the display name of resource adapters or JavaBeans resources. You use the display name output in the message issued after the cmx_register_resource command is executed.
Input examples
cmx_undefine_resource sample-system -resname App1
Return values
- 0:
- The command is terminated normally.
- 1:
- The command is terminated with a warning.
- 64:
- The command is terminated abnormally.
Notes
- If the specified resource adapter or the JavaBeans resource is deployed, 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.