activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ngcdan12 <>
Subject Re: MapMessages from Python to Java
Date Fri, 30 Oct 2009 00:45:48 GMT

Hello Dejan,

Python is sending mapmessages directly to the MQ server :).

I am wondering about the Stomp protocol.  The example you listed below is
for a Java implementaion of Stomp.  I am actually having a problem with the
MapMessage being sent from the Python side.  So I would need to convert the
mapmessage to an xml object, then, using stomp headers convert that object
to a map message then send it correct?  The problem is I need to do that in
Python and have been unable to find how to do so since all the examples are
listed in java.  Could you clarify on using Python to create an xml object,
convert to a map message then send it to Java?  Or is that not possible.  I
have been looking at some modules like Stompy and stomppy but have not been
able to create a working messageListener.




are you sure you're sending map messages from Python?

If you use Stomp protocol, you have to send your data xml or json encoded
and use "transformation" header to specify how data should be converted to
Java. I suggest you read this
look at StompTest (
for some more examples.

You can also use py-activemq ( lib
which can use OpenWire and CMS API to send map messages naturally.

Dejan Bosanac -

Open Source Integration -
ActiveMQ in Action -
Blog -

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message