Python ActiveMQ: Is it possible to use pika client to work on ActiveMQ?

2.8k Views Asked by At

As I know ActiveMQ supports the amqp:// protocol, and now I want to connect the ActiveMQ instance within python.

Is it possible and good to use the pika package to get it? As I read the document of pika, it seemed it was design to be used with RabbitMQ only.

Or else, what protocol should I use is most proper for ActiveMQ on python?

1

There are 1 best solutions below

1
On BEST ANSWER

Pika seems to support AMQP 0.9.x. ActiveMQ supports AMQP 1.0 - a different protocol.

So, what you need is a AMQP 1.0 client - or a STOMP client - or a MQTT client.

QPid proton is a Python AMQP 1.0 client.

Stomp.py is an alternative using Stomp.