A message is delivered in the following two stages:
- Delivery from the producer to the destination managed by CJMSP Broker
- Delivery from the destination managed by CJMSP Broker to the consumer
In the meantime, if a problem occurs at the following times, the message might be lost:
- During message transmission
- During message transmission from the producer to the destination managed by CJMSP Broker
- During message transmission from the destination managed by CJMSP Broker to the consumer
- When an error occurs in CJMSP Broker
The methods of ensuring reliability in these cases are as follows:
- When a problem occurs during message transmission
To ensure message reliability during message transmission, you can use the mechanism of message delivery acknowledgement (Acknowledge Mode), provided in the JMS specifications.
Also, if a problem occurs from the sending to the receiving of the message based on the use of transactions, the system integrity can be protected.
- When an error occurs in CJMSP Broker
To store the messages registered in the destination when an error occurs in CJMSP Broker, you must perpetuate the messages in advance. With Cosminexus JMS Provider, you can store the messages in a file and perpetuate the messages.
From these methods, this section describes how to ensure reliability by using transactions in 7.7.2 Using transactions.
Also, during message delivery, a memory resource problem might occur depending on the amount of sent and received messages. The method of controlling the message flow rate in order to operate the memory resources appropriately is described in 7.7.3 Controlling the message flow rate.
For details on the message delivery acknowledgement, see the JMS specifications. The CJMSP Broker-based file persistence is described in 7.8.4 Management information and message persistence services.