activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <dejan.bosa...@ttmsolutions.com>
Subject Re: map messages
Date Fri, 17 Oct 2008 10:37:42 GMT
Hi Eugene,

this should be working fine. Did you passed transformation header to
your SUBSCRIBE command?

Take a look at testTransformationReceiveXMLMap test in StompTest
(http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java?revision=692181&view=markup)

Cheers

-- 
Dejan Bosanac


http://www.ttmsolutions.com - get a free ActiveMQ user guide

ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net



Eugene79 wrote:
> Hi all,
>
> I am trying to pass map messages via activemq. So far it works java <-->
> java. I modified stomp.py to serialize dictionaries as described here:
>
> http://docs.codehaus.org/display/STOMP/Stomp+v1.1+Ideas
>
> So now I can send python dictionary and receive MapMessage in java. However,
> if I send MapMessage in java, it comes in empty in python:
>
> MESSAGE
> destination:/topic/pes
> transformation:jms-map-xml
> timestamp:1224187424909
> priority:0
> expires:0
> message-id:ID:greaser.fas.fa.disney.com-51709-1224187411423-4:1:-1:1:2
>
> ^@
>
> Obviously I can just use text messages and implement my own serialization.
> But I'd rather get the standard serialization to work. Any ideas?
>
> thanks,
>
> Eugene
>
>
>
>   



Mime
View raw message