Hitachi

uCosminexus Application Server Application Setup Guide


4.3.5 Testing the connectivity of a J2EE resource adapter

Use the connectivity test to verify whether the information set in the resource adapter is correct.

Execute the following command to test the connectivity of the resource adapter:

Execution format
cjtestres [server-name] [-nameserver provider-URL] -type rar -resname display-name-of-the-resource-adapter [-resname display-name-of-the-resource-adapter]
Example of execution
cjtestres MyServer -type rar -resname Rar1

For details on the cjtestres command, see cjtestres (execute resource connection test) in the uCosminexus Application Server Command Reference Guide.

Note:
  • You cannot delete a resource adapter for which connectivity has been tested once until you restart the J2EE server. To delete the resource adapter, stop the resource adapter and then restart the J2EE server.

  • If resource adapters compliant with Connector 1.5 specifications have multiple connection definitions, the connectivity test is executed for all the connection definitions. Even if an error occurs in one of the connection definitions, the connectivity test will be executed for all the connection definitions. However, in such a case, the result of the connectivity test will be "Failed".

  • If resource adapters are compliant with Connector 1.5 specifications, a connectivity test can be executed only when Outbound resource adapters are included.