On 23/03/17 21:24, Mark Blum wrote:
Hello all,
I'm trying to get amqp1.0 support working in Python so I can interact with
an ActiveMQ broker which supports amqp1.0.
What I can't figure out is what magic combination of steps will get this
working.
Note I am trying to use the messaging API at this time, not the proton
(reactor) API.
Is there a particular reason for that choice? (The swigged
qpid_messaging is not really a first-class client. It was more of an
internal convenience for writing tests etc).
So far I've determined that the qpid Python bindings don't support amqp1.0,
but I get the impression that the python-cqpid bindings do.
However, I can't get it to work right (hence this message). If I leave the
protocol option out when creating a new Connection object it defaults to
amqp0-10 (and I get an unsupported version error when opening the connection
to the ActiveMQ broker), and if I use the protocol option (e.g.
cqpid.Connection(broker_url, protocol = 'amqp1.0'), I get "RuntimeError:
Invalid option: protocol not recognised
(qpid/client/amqp0_10/ConnectionImpl.cpp:160)" which is obvious that it is
following an amqp0_10 code path.
It sounds like your c++ client library was built without 1.0 support
enabled.
I'm trying all this on an Ubuntu 16.04 LTS server, and I've installed qpid
via sudo apt-get install libqpid-proton2 python-cqpid python-qpid.
I'm willing to install any other packages and/or manually build packages if
it will help.
If someone can point out what I'm missing to get this to work I would
greatly appreciate it!
If you build qpid-cpp with proton installed, you should get 1.0 support.
(You can verify this with the c++ examples or test utils). The swig
wrapper for qpid_messaging is built as part of that.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]