Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 89185 invoked from network); 21 Feb 2010 19:15:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Feb 2010 19:15:47 -0000 Received: (qmail 59181 invoked by uid 500); 21 Feb 2010 19:15:47 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 59118 invoked by uid 500); 21 Feb 2010 19:15:47 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 59108 invoked by uid 99); 21 Feb 2010 19:15:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Feb 2010 19:15:47 +0000 X-ASF-Spam-Status: No, hits=3.6 required=10.0 tests=FORGED_YAHOO_RCVD,HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Feb 2010 19:15:39 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NjHGw-0007vK-IF for users@activemq.apache.org; Sun, 21 Feb 2010 11:15:18 -0800 Message-ID: <27676880.post@talk.nabble.com> Date: Sun, 21 Feb 2010 11:15:18 -0800 (PST) From: apurav chauhan To: users@activemq.apache.org Subject: Parsing TextMessage in JavaScript MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_40897_29239953.1266779718562" X-Nabble-From: apurav.chauhan@yahoo.com ------=_Part_40897_29239953.1266779718562 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit hello all, i am working with amq.js and ajax. i know how to get the contents of the message if it is sent through the javascript like: Sender code: amq.sendMessage("topic://APURAV",""+document.getElementById("chatboxs").value+""); Callback method function(message) { alert("received "+message.childNodes[0].data+message.getAttribute('type')); } -------------------------------------------------------- But if i publish a TextMessage from my servlet through the code , i dont know how to read the contents of that message. Even though the above callback method works but i have no idea how to print the contents. Servlet Code Sample ... TextMessage message =session.createTextMessage("hello"); message.setStringProperty("type", "apurav"); producer.send(message); PLEASE HELP ME WITH PRINTING THIS MESSAGE IN CALLBACK HANDLER. THANKS IN ADVANCE -- View this message in context: http://old.nabble.com/Parsing-TextMessage-in-JavaScript-tp27676880p27676880.html Sent from the ActiveMQ - User mailing list archive at Nabble.com. ------=_Part_40897_29239953.1266779718562--