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 1F793D4AA for ; Sat, 10 Nov 2012 18:07:03 +0000 (UTC) Received: (qmail 22253 invoked by uid 500); 10 Nov 2012 18:07:02 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 22201 invoked by uid 500); 10 Nov 2012 18:07:02 -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 22188 invoked by uid 99); 10 Nov 2012 18:07:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 18:07:02 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.250.139 is neither permitted nor denied by domain of fbcyborg@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 18:06:57 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TXFS0-0000VZ-Vb for users@activemq.apache.org; Sat, 10 Nov 2012 10:06:37 -0800 Date: Sat, 10 Nov 2012 10:06:36 -0800 (PST) From: fbcyborg To: users@activemq.apache.org Message-ID: <1352570796971-4659164.post@n4.nabble.com> In-Reply-To: References: <1351792869637-4658603.post@n4.nabble.com> <1351887157192-4658710.post@n4.nabble.com> <1351889464820-4658712.post@n4.nabble.com> <1352412242555-4659087.post@n4.nabble.com> Subject: Re: Help configuring ActiveMQ as JMSProvider in WebSphere MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org gtully wrote > the actievmq initial context is just a hash map, it does not query the > broker to find destinaitons. > so either you configure the hashmap via properties or you do a lookup > in the dynamicQueues context and it will return what ever you ask for. > > eg: > > Queue queue = (Queue) > jndiContext.lookup("dynamicQueues/jms/systemMessageQueue"); Hi! Thank you for replying. Well, I've tried what you suggested but apart from the fact that I am not using dynamically created queues because they are already defined in ActiveMQ, I tried to write: /queue = (Queue)jndiContext.lookup("dynamicQueues/jms/systemMessageQueue");/ but this seems to be not working as well. This is the exception I get: /[11/10/12 18:59:14:428 CET] 00000026 SystemErr R javax.naming.NameNotFoundException: Context: Z21X9ENode01Cell/nodes/Z21X9ENode01/servers/server1, name: dynamicQueues/jms/systemMessageQueue: First component in name dynamicQueues/jms/systemMessageQueue not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]/ Cheers -- View this message in context: http://activemq.2283324.n4.nabble.com/Help-configuring-ActiveMQ-as-JMSProvider-in-WebSphere-tp4658603p4659164.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.