[openamq-dev] QPid / Python / OpenAMQ

Esteve Fernandez esteve at sindominio.net
Wed Jan 23 18:16:59 CET 2008


El Miércoles 23 Enero 2008 16:26:06 Josh escribió:
> Terry Jones wrote:
>
> "We wrote some sample Python code to talk to a qpid server..."
>
> Terry, what version of QPid were you using, and how did you have to
> refactor the code to work with OpenAMQ?  I'm beginning work on a project
> using QPid client, hopefully with AMQ, and during my research I kept
> finding indications that QPid only supports verison 0-8 of the protocol
> where OpenAMQ only supports version 0-9.  Is this still the case?

(Terry and I work on the same project)

We wrote a very simple Twisted-based client (Protocol/Factory/Client in 
Twisted-speak) against Qpid M2, which supports 0.8 only (I think Qpid M2.1 
supports 0.9 now)

The thing is that, to give OpenAMQ a try, the changes to our client were 
minimal. You only need to change the authentication code from:

response={"LOGIN": user, "PASSWORD": password}

to:

response='\0' + user + '\0' + password

that's pretty much it. Ensure to change the XML spec file (amqp.0-8.xml -> 
amqp.0-9.xml)

Cheers.


More information about the openamq-dev mailing list