Don
Don

Reputation: 45

Store and Process Messages in ActiveMQ

I have used ActiveMQ for publishing my message to the consumer so that I can receive the message at consumers end and trigger something.

Now my question is that can ActiveMQ support storing and processing the group of messages? For example:

If a group of messages published at a time I need to get the first two and process. The rest of them should wait in queue. After those two messages have processed I need to get another to process until I processed the picked messages, The rest of the message should wait in queue.

Is this possible?

Upvotes: 2

Views: 280

Answers (1)

ashokramcse
ashokramcse

Reputation: 2861

You need to Subscribe the message after you completed your old process. ActiveMQ will give away the message when you pick it from the queue.

Upvotes: 2

Related Questions