To stop a system using Cosminexus JMS Provider, use the following procedure. Note that steps 3 and 4 are in a random order.
- Stop the J2EE application that sends and receives the messages.
The following is an example of execution using the server management commands. In this example, the J2EE server name is 'cmx_MyWebSystem_unit1_J2EE_01', and the J2EE application name is 'JMSSampleApp'.
- Example of execution
- In Windows
- Cosminexus-installation-directory\CC\admin\bin\cjstopapp "cmx_MyWebSystem_unit1_J2EE_01" -resname "JMSSampleApp"
- In UNIX
- /opt/Cosminexus/CC/admin/bin/cjstopapp "cmx_MyWebSystem_unit1_J2EE_01" -resname "JMSSampleApp"
- Stop the CJMSP resource adapter.
The following is an example of execution using the server management commands. Note that in this example, the J2EE server name is 'cmx_MyWebSystem_unit1_J2EE_01', and the CJMSP resource adapter name is 'Cosminexus_JMS_Provider_RA'.
- Example of execution
- In Windows
- Cosminexus-installation-directory\CC\admin\bin\cjstoprar "cmx_MyWebSystem_unit1_J2EE_01" -resname "Cosminexus_JMS_Provider_RA"
- In UNIX
- /opt/Cosminexus/CC/admin/bin/cjstoprar "cmx_MyWebSystem_unit1_J2EE_01" -resname "Cosminexus_JMS_Provider_RA"
- Stop CJMSP Broker.
The following is an example of execution for stopping CJMSP Broker 'MyBroker':
- Example of execution
- In Windows
- Cosminexus-installation-directory\CC\cjmsp\bin\cjmsicmd shutdown bkr
- In UNIX
- /opt/Cosminexus/CC/cjmsp/bin/cjmsicmd shutdown bkr
- Hint
- When you want to stop CJMSP Broker, identify the target CJMSP Broker using the host name and the port number. If you execute the cjmsicmd shutdown bkr command without specifying the port number, the stop processing will be executed for CJMSP Broker that is using the default port 7676. To stop CJMSP Broker that is using another port, specify the host name and the port number in the -b option. The following is an example of execution:
- Example of execution (to stop CJMSP Broker that is using the port 7777)
- cjmsicmd shutdown bkr -b localhost:7777
- For details, see cjmsicmd shutdown bkr (Stopping CJMSP Broker) in the uCosminexus Application Server Command Reference Guide.
- Stop each execution environment process of the J2EE applications containing the J2EE server.
You can batch stop a system set up with Smart Composer. For details, see 4.1.3 System stopping procedure in the uCosminexus Application Server Management Portal User Guide.