Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 11866 invoked from network); 4 Aug 2009 15:04:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Aug 2009 15:04:51 -0000 Received: (qmail 765 invoked by uid 500); 4 Aug 2009 15:04:55 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 665 invoked by uid 500); 4 Aug 2009 15:04:55 -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 150 invoked by uid 99); 4 Aug 2009 15:04:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2009 15:04:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.strachan@gmail.com designates 209.85.220.218 as permitted sender) Received: from [209.85.220.218] (HELO mail-fx0-f218.google.com) (209.85.220.218) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Aug 2009 15:04:44 +0000 Received: by fxm18 with SMTP id 18so3790766fxm.38 for ; Tue, 04 Aug 2009 08:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=OhO1Af5kC/AkAK5dVjMRM1nvHr4y/gaDBrX9TachMf4=; b=hUbf75iAxG49QZLx1ZvWCc3eqbgZ+tOsNKnbWr+1+4ry1kQ7XzsIOIupmScWMcd+Og yxGOPghVS/sy6K/e4qaSapw/9xdFa/bE3kGrJ4LBODApHTMUXLVNEGAiFk57mumXnM51 b9V8cuYBRlwrQe4/xRkVC2aNRKbQdcDJjlpIc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=UoqHGtUxKY0+w6KAvg85s2yc2NMzsDHoYK+j27KEg8wlVjutbY7EONCP7dic3adX7R 9QMo8fxaooYEHU0eY+ZUylM7XuaNiD0pBM24lxpLp0rGrUOYrUqBMDYb17hcXlPnATWL ScZhtVpECTLJjJ5DiU1v8pcVRVoheVjL9Wat8= MIME-Version: 1.0 Received: by 10.223.111.129 with SMTP id s1mr1176181fap.12.1249398263094; Tue, 04 Aug 2009 08:04:23 -0700 (PDT) In-Reply-To: <24810211.post@talk.nabble.com> References: <24809685.post@talk.nabble.com> <24809919.post@talk.nabble.com> <24810211.post@talk.nabble.com> From: James Strachan Date: Tue, 4 Aug 2009 16:04:03 +0100 Message-ID: Subject: Re: AMQ + Programmatic Creation of Destinations + Registration in JNDI To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 2009/8/4 jworkman : > > I am not sure I follow... When I do ctx.lookup("dyanmicQueues/whatever") what > will this do? Create a queue if one does not exist in the destination amq > server? Yes, see this FAQ entry... http://activemq.apache.org/how-do-i-create-new-destinations.html > What is happening currently on the remote (calling) client: I can access the > factory and create the connection with a session okay, but when I try to do > a lookup for the domain/queue (which I explicitly created by calling > createQueue("domain/queue") on destination amq server) I get queue not > found. > > Is prepending dynamicQueues/ the only way around? use the "dynamicQueues/whatever" to look up the Queue object in JNDI (which will map to the "whatever" queue in ActiveMQ. If you don't want to use JNDI to lookup destinations, just call createQueue(String) - then there is no need to register anything in JNDI for queue/topics, other than your ConnectionFactory - of which you'll probably only need a single one. -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/