Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 35881 invoked from network); 15 Jan 2007 21:57:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Jan 2007 21:57:13 -0000 Received: (qmail 37106 invoked by uid 500); 15 Jan 2007 21:57:19 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 37088 invoked by uid 500); 15 Jan 2007 21:57:19 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 37078 invoked by uid 99); 15 Jan 2007 21:57:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jan 2007 13:57:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jan 2007 13:57:09 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H6Zou-0007mR-T4 for activemq-dev@geronimo.apache.org; Mon, 15 Jan 2007 13:56:48 -0800 Message-ID: <8380165.post@talk.nabble.com> Date: Mon, 15 Jan 2007 13:56:48 -0800 (PST) From: garima015 To: activemq-dev@geronimo.apache.org Subject: Re: Error while Sending Map message In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: garima_indiya@rediffmail.com References: <8304233.post@talk.nabble.com> <8305206.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 wrote: >> Try using 4.1.0 I think it supports sending hashmaps of primitive data. >> >> On 1/12/07, garima015 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 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.