Appendix E.9 Checking the message delivery status and the action to be taken for accumulated messages (Procedure for pausing CJMSP Broker)

This subsection describes the procedure for checking the message delivery status of Cosminexus JMS Provider and the procedure of action when the messages accumulate.

With this method, an exception might occur due to the occurrence of application timeout after CJMSP Broker is paused.

To delete the messages safely, see Appendix E.10 Checking the message delivery status and the action to be taken for accumulated messages (Procedure for stopping an application).

The following figure shows the procedure for checking the message delivery status and the action to be taken for accumulated messages (procedure for pausing CJMSP Broker).

Figure E-8 Procedure for checking the message delivery status and the action to be taken for accumulated messages (procedure for pausing CJMSP Broker)

[Figure]

Organization of this subsection
(1) Process preconditions
(2) Information and supplementary explanation required for execution

(1) Process preconditions

(2) Information and supplementary explanation required for execution

The coding, such as (A1), corresponds to the coding in the figure.

(A1)
Check the destination (or persistence subscriber) name and the number of messages.
host-name:port-number
The host name and port number on which CJMSP Broker is running.
If you omit the port number when CJMSP Broker is started, the default port number 7676 is used. In this case, you can omit the -b option.
Topic-name
Topic name containing the persistence subscriber you want to check
(A2)
host-name:port-number
The host name and port number on which CJMSP Broker is running.
If you omit the port number when CJMSP Broker is started, the default port number 7676 is used. In this case, you can omit the -b option.
(A3)
Check whether the status of the jms service is PAUSED.
host-name:port-number
The host name and port number on which CJMSP Broker is running.
If you omit the port number when CJMSP Broker is started, the default port number 7676 is used. In this case, you can omit the -b option.
An example of output is as follows:

-----------------------------------------------
Service Name Port Number Service State
-----------------------------------------------
admin 1248 (dynamic) RUNNING
jms 0 (dynamic) PAUSED

KDAN34113-I Successfully listed services.

(A4)
Type
q (Queue) or t (Topic)
Name
Queue name or Topic name
host-name:port-number
The host name and port number on which CJMSP Broker is running.
If you omit the port number when CJMSP Broker is started, the default port number 7676 is used. In this case, you can omit the -b option.
Initial-timeout-value
The default initial timeout value is set at 10 seconds. Adjust the value if the processing times out with the default value.
Persistence-subscriber-name
Persistence subscriber name checked in (A1)
Client-ID
Client ID checked in (A1)
(A5)
host-name:port-number
The host name and port number on which CJMSP Broker is running.
If you omit the port number when CJMSP Broker is started, the default port number 7676 is used. In this case, you can omit the -b option.
(A6)
Check whether the status of the jms service is RUNNING.
host-name:port-number
The host name and port number on which CJMSP Broker is running.
If you omit the port number when CJMSP Broker is started, the default port number 7676 is used. In this case, you can omit the -b option.
An example of output is as follows:

-----------------------------------------------
Service Name Port Number Service State
-----------------------------------------------
admin 1248 (dynamic) RUNNING
jms 1337 (dynamic) RUNNING

KDAN34113-I Successfully listed services.