Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C46F617269 for ; Tue, 14 Oct 2014 11:46:46 +0000 (UTC) Received: (qmail 54831 invoked by uid 500); 14 Oct 2014 11:46:46 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 54791 invoked by uid 500); 14 Oct 2014 11:46:46 -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 54780 invoked by uid 99); 14 Oct 2014 11:46:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2014 11:46:45 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_HELO_PASS,SPF_SOFTFAIL,URI_HEX,URI_TRY_3LD X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of raj2absaarjaved@gmail.com does not designate 162.253.133.43 as permitted sender) Received: from [162.253.133.43] (HELO mwork.nabble.com) (162.253.133.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2014 11:46:19 +0000 Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 4F7F978FB83 for ; Tue, 14 Oct 2014 04:46:18 -0700 (PDT) Date: Tue, 14 Oct 2014 04:44:35 -0700 (PDT) From: absaar To: users@activemq.apache.org Message-ID: <1413287075962-4686373.post@n4.nabble.com> Subject: Sending Message to ActiveMQ Topic Using AJAX (amq.js) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I am trying JavaScript library i.e. amq.js for sending messages to a Topic on ActiveMQ. I am successfully able to listen the messages published on a particular topic and process them in messageListener using amq.js. I need to send a message using amq.js to topic in the following format: How should I compose this message, taking data from above screenshot, so that it can be sent via AJAX using following method: *amq.sendMessage("topic://doSomething",myMessage);* -- View this message in context: http://activemq.2283324.n4.nabble.com/Sending-Message-to-ActiveMQ-Topic-Using-AJAX-amq-js-tp4686373.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.