Kevin Smith wrote:
So it looks like I need to prototype some sort of RPC-over-message-bus mechanism for my day job and, of course, QPID is my first choice for the message bus :)

I had seen in another mail that there was a Python framework to make writing clients and servers easier. Is this the code in python/qpid/peer.py and python/qpid/delegate.py? If this is the code, are there any examples using the code? If this isn't the code, any pointers would be appreciated.

That is the code, however you want the version under here:

    branches/qpid.0-9/python/

Look at the server script in the above directory for example server usage.

I'm not sure this is really what you're looking for though since the RPC-apis are generated from the AMQP XML spec itself, so you'd really have to write a new version of the XML spec file if you wanted to use custom APIs, i.e. this code is really XML spec based RPC-apis for *implementing* a message bus, not RPC apis *over* a message bus.

That said many of the same pythonesque coding tricks for dynamically generating APIs would probably still apply so it's certainly worth a look and I'm happy to answer any other questions that may come up.

--Rafael

Reply via email to