Process only one message at a time in Active MQ

0

I have a Java process that uses ActimeMQ, the queued messages are processed by Java and sent to a socket. The problem is that activeMQ processes several messages asynchronously at the same time, and sends them to the socket, causing the message to be received in a different order than the one sent when listening to the socket. It is possible to force ActiveMQ to keep messages in the queue if it still maintains a message that has not been "dequeued", this with the intention that only one message is processed at a time in the socket, in the order that they are received.

    
asked by Jonathan Cordero Duarte 13.12.2017 в 17:07
source

1 answer

0

After further testing, I understood that by default ActiveMQ queues the messages. The cause of the problem I had, was another process that did not go through a queue.

    
answered by 25.01.2018 в 01:43