3
votes

I have to write a Listener for ActiveMQ in python.

Is there any python package which could be used to write the listener. Also what is with Stomp/Openwire protocol. When i start activemq, i see three urls with protocol namely tcp, ssl, stomp.

Any help will be appreciated

EDIT!: Another question I have is suppose we start the broker with stomp as well as openwire protocol. Lets say the broker Url is now tcp://localhost:61616 and stomp://localhost:61613. So now the broker is listening on two different ports. My question is if a producer publishes a message on tcp port will that message could be consumed by a subscriber on stomp port? Also what If two subscribers on tcp and stomp respectively are waiting on the same queue, will they both receive the message?

2

2 Answers

3
votes

For python you can use something like stomppy which will let you inter-operate with any broker that is STOMP aware. ActiveMQ uses its own openwire protocol natively but can also talk STOMP and MQTT. You need to add a STOMP TransportConnector, see the STOMP page at ActiveMQ.

0
votes

Finally I am using STOMP python for listening to a ActiveMQ Broker. PyActiveMq is to unstable to be used as it is no more maintained.