activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garima015 <garima_ind...@rediffmail.com>
Subject Re: Error while Sending Map message
Date Mon, 15 Jan 2007 21:56:48 GMT

Can i also send exception object ?? as Object Message


Hiram Chirino wrote:
> 
> But if that is not an option you could always send the hash map using
> an ObjectMessage.
> 
> On 1/12/07, Hiram Chirino <hiram@hiramchirino.com> wrote:
>> Try using 4.1.0 I think it supports sending hashmaps of primitive data.
>>
>> On 1/12/07, garima015 <garima_indiya@rediffmail.com> wrote:
>> >
>> > we are using 4.0.2
>> > any solution?? i want to send hashmap
>> >
>> > Hiram Chirino wrote:
>> > >
>> > > Are you using ActiveMQ 4.1.0 ???
>> > >
>> > > On 1/12/07, garima015 <garima_indiya@rediffmail.com> wrote:
>> > >>
>> > >> Hi,
>> > >>
>> > >> I have an urgent requirement in which i have to send Map as a
>> message to
>> > >> Queue
>> > >> I am trying this code:
>> > >> if(message instanceof Map){
>> > >>           MapMessage requestMessage = (MapMessage)
>> > >> session.createMapMessage();
>> > >>           requestMessage.setObjectProperty("MAP", message);
>> > >>          requestMessage.setJMSReplyTo(replyQueue);
>> > >>           requestProducer.send(requestMessage);
>> > >> }
>> > >>
>> > >> javax.jms.MessageFormatException: Only objectified primitive objects
>> and
>> > >> String types are allowed
>> > >>
>> > >> can some body please tell me the resolution.Its really very imp .
>> > >>
>> > >> thanks in advance
>> > >>
>> > >> but when running it is throwing this error
>> > >> --
>> > >> View this message in context:
>> > >>
>> http://www.nabble.com/Error-while-Sending-Map-message-tf2967725.html#a8304233
>> > >> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>> > >>
>> > >>
>> > >
>> > >
>> > > --
>> > > Regards,
>> > > Hiram
>> > >
>> > > Blog: http://hiramchirino.com
>> > >
>> > >
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/Error-while-Sending-Map-message-tf2967725.html#a8305206
>> > Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>> >
>> >
>>
>>
>> --
>> Regards,
>> Hiram
>>
>> Blog: http://hiramchirino.com
>>
> 
> 
> -- 
> Regards,
> Hiram
> 
> Blog: http://hiramchirino.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-while-Sending-Map-message-tf2967725.html#a8380165
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message