« Return to Thread: load balancing

load balancing

by Vadim Zaliva :: Rate this Message:

Reply to Author | View in Thread

Hi!

I am trying to use ActiveMQ and Stomp protocol to implement scenario  
where are multiple consumers are processing messages from single  
queue. I want to make sure that only one consumer will get the  
message, and he must acknowledge it, so the message will get back to  
queue if it has not acknowledged for some time.

One of problems I see is that there is no NAK command in stomp. So,  
once I have received the message I could not send NAK to reject it  
back to the queue, so it will be delivered to another consumer.

Another problem, or rather a question, is what happens to not ACK-ed  
messages. Are they delivered to other consumers and under what  
conditions?

Perhaps I can use stomp transactions, but I am not sure how they apply  
to receiving messages.

Sincerely,
Vadim

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: load balancing