Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 23574 invoked from network); 13 Mar 2009 00:17:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2009 00:17:07 -0000 Received: (qmail 98549 invoked by uid 500); 13 Mar 2009 00:17:06 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 98515 invoked by uid 500); 13 Mar 2009 00:17:06 -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 98504 invoked by uid 99); 13 Mar 2009 00:17:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Mar 2009 17:17:06 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG 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; Fri, 13 Mar 2009 00:16:58 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lhv4n-00008V-IU for users@activemq.apache.org; Thu, 12 Mar 2009 17:16:37 -0700 Message-ID: <22487877.post@talk.nabble.com> Date: Thu, 12 Mar 2009 17:16:37 -0700 (PDT) From: Antsa To: users@activemq.apache.org Subject: How to discover destinations configured in a broker MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: adb@teamware.com X-Virus-Checked: Checked by ClamAV on apache.org I'm a newbie to JMS. I have an embedded broker configured in my Spring XML config running inside my app. My app is acting as a messaging gateway, receiving non JMS messages from another system and I'm trying to then put these messages to their JMS topic destinations. I'm just using similar code to the ProducerTool example, e.g. Session session = connection.createSession(transacted, Session.AUTO_ACKNOWLEDGE); destination = session.createTopic(subject); but I know I should not be using createTopic() in my real app. So, how do I find out what destinations the broker supports and get the Destination object to procuce the message to. This is both a local (same vm) and remote vm issue. Do I have to use JNDI or is there some other magic that makes this easy? Thanks Antony -- View this message in context: http://www.nabble.com/How-to-discover-destinations-configured-in-a-broker-tp22487877p22487877.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.