Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 80326 invoked from network); 5 Apr 2007 23:26:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Apr 2007 23:26:57 -0000 Received: (qmail 36530 invoked by uid 500); 5 Apr 2007 23:27:03 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 36512 invoked by uid 500); 5 Apr 2007 23:27:03 -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 36502 invoked by uid 99); 5 Apr 2007 23:27:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2007 16:27:03 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,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; Thu, 05 Apr 2007 16:26:56 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HZbLe-0002C9-Kl for users@activemq.apache.org; Thu, 05 Apr 2007 16:26:34 -0700 Message-ID: <9865743.post@talk.nabble.com> Date: Thu, 5 Apr 2007 16:26:34 -0700 (PDT) From: samd To: users@activemq.apache.org Subject: ActiveMQ TextMessage to GlassFish Queue MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sdoyle_2@yahoo.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have a standalone ActiveMQ client which I'm trying to get to send a TextMessage to a GlassFish queue so that it can be consumed by a MDB. What is the procedure required to do this? I tried using the standard mechanism of: String serverUrl="tcp://:/"; ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory( serverUrl ); QueueConnection queueConnection = ((QueueConnectionFactory)factory).createQueueConnection(); QueueSession senderSession = queueConnection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE); Queue requestQueue = senderSession.createQueue("testQueue"); QueueSender sender = senderSession.createSender(requestQueue); queueConnection.start(); This doesn't appear to work. Any help would be greatly appreciated. Thanks, S.D. -- View this message in context: http://www.nabble.com/ActiveMQ-TextMessage-to-GlassFish-Queue-tf3534521s2354.html#a9865743 Sent from the ActiveMQ - User mailing list archive at Nabble.com.