Arijit Bose
Arijit Bose

Reputation: 351

Activemq message acknowledgement

Is there any way i can acknowledge a message based on the message id only. My scenario is like this:

  1. A web service received message from activemq with ActiveMQSession.INDIVIDUAL_ACKNOWLEDGE.
  2. Sends this message to the client.
  3. Client sends the acknowledgement after processing it with the message id

Here the requirement is to the webservice should be able to acknowledge the message based on the message id.

Upvotes: 1

Views: 3539

Answers (1)

omkar
omkar

Reputation: 424

Right now, you can only call the acknowledge() method on the respective message object to acknowledge that particular message. But keep in mind that calling the acknowledge() method on a message object which is not present in the broker will cause 'Could not correlate acknowledgment with dispatched message' exception.

Upvotes: 2

Related Questions