activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RobR <>
Subject Looking for Python example of acknowledging messages
Date Tue, 15 Jul 2014 16:23:21 GMT
I am beginning to do my homework, and I think I have a basic idea of the
difference between a topic and a queue.  Since my current task is to send
messages to a queue (or a topic), I don't care how the message will be
received.  That's our client's responsibility.

But I remain curious.  I'd like to see the load-balancing feature of a queue
in action.  So, I'd like to write a consumer that reads a message, logs it,
and acknowledges it five seconds later.  Ten instances of this consumer
would be running.  A publisher would send a message every second.  I should
see the messages get distributed among all of the consumers (or at least
five of them).  

This would be easy, except that I can't find any examples of reading and
acknowledging messages in Python, and I've never written anything in Java. 
The only examples I have found illustrate writing to and reading from
topics.  Can someone point me to a Python example that would be a good
starting point?  Or at least tell me what package I need to use that would
allow me to create a Session object?  I've only got the stomppy package, and
that doesn't seem to have what I need.

Thanks very much!


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message