Re: PERL/STOMP: MapMessages

2009-09-02 Thread Dejan Bosanac
Hi Nishant, Stomp 1.0 supports only string headers, so it's probably something with the conversion that gets you always a false value. Currently you have to do your own conversions from string to the type you want to use. This is something we are looking to improve in Stomp 1.1 spec. Cheers -- De

Re: PERL/STOMP: MapMessages

2009-09-01 Thread nmittal
Dejan, I have another question. Using Net::Stomp i am sending a text message with 2 properties (one string and one Boolean). My code looks like this... my %head; $head{Critical} = 1; $head{Application} = "Test"; $head{destination} = '/queue/Queue.Test';

Re: PERL/STOMP: MapMessages

2009-08-20 Thread nmittal
Perfect that worked. thanks Dejan. Dejan Bosanac wrote: > > Try putting Jettison in your broker's classpath (lib/ or lib/optional). > > Cheers > -- > Dejan Bosanac > > Open Source Integration - http://fusesource.com/ > ActiveMQ in Action - http://www.manning.com/snyder/ > Blog - http://www.ni

Re: PERL/STOMP: MapMessages

2009-08-20 Thread Dejan Bosanac
Try putting Jettison in your broker's classpath (lib/ or lib/optional). Cheers -- Dejan Bosanac Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Thu, Aug 20, 2009 at 3:03 PM, nmittal wrote: > > I tried... >

Re: PERL/STOMP: MapMessages

2009-08-20 Thread nmittal
I tried... $stomp->subscribe( { destination => '/queue/Queue.Emails', 'ack' => 'client', 'activemq.prefetchSize' => 1, 'transformation' => 'jms-map-json' } ); but my client kept waiting.. however, when I do... $stomp->s

Re: PERL/STOMP: MapMessages

2009-08-20 Thread Dejan Bosanac
Yup, you can use jms-map-xml (or json), jms-object-xml (or json) and jms-byte Cheers -- Dejan Bosanac Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Thu, Aug 20, 2009 at 2:48 PM, nmittal wrote: > > That w

Re: PERL/STOMP: MapMessages

2009-08-20 Thread nmittal
That was it, I wasnt using any transformation. Now i see the body as XML.. thanks a lot Dejan. Also, is there a jms-map-json? thanks again Nishant Dejan Bosanac wrote: > > Hi, > > I'm not sure your Perl client supports messages transformation, but you > have > to add "transformation" header

Re: PERL/STOMP: MapMessages

2009-08-20 Thread Dejan Bosanac
Hi, I'm not sure your Perl client supports messages transformation, but you have to add "transformation" header to your subscribe frame (such as 'transformation' => 'jms-map-xml'). Take a look at http://activemq.apache.org/stomp.html#Stomp-Messagetransformations and StompTest unit test for more i

PERL/STOMP: MapMessages

2009-08-19 Thread nmittal
Hi, Has anyone been able to write a Perl client that reads MapMessges off of an ActiveMQ queue? We have a C++ ActiveMQ client that is sending MapMessages to the broker. However, the Perl client using Net::Stomp says that the body is undefined. Below is the message as seen in the activemq admin we