Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 77264 invoked from network); 5 Aug 2006 06:19:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Aug 2006 06:19:54 -0000 Received: (qmail 83049 invoked by uid 500); 5 Aug 2006 06:19:54 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 83026 invoked by uid 500); 5 Aug 2006 06:19:54 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 83017 invoked by uid 99); 5 Aug 2006 06:19:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 23:19:53 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 23:19:53 -0700 Received: by nf-out-0910.google.com with SMTP id l36so1533998nfa for ; Fri, 04 Aug 2006 23:19:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=j2x7XBVhnhf1Xg7qDVZ5vS2JIv/wPIzUXkTUS++8h8FJhRHc21A5KWwRGPpgK/K6pE2m/I9SQZg+NeGej/OgbJ0MDXb3MrE6Vkm5c1QgdCLnF6FBka1fOqetFYUbuI1o5mcBbI7mLH68hA5Bh7sVqiWezZ9BUDgXD+wgbvcDW6I= Received: by 10.78.136.7 with SMTP id j7mr1818577hud; Fri, 04 Aug 2006 23:19:31 -0700 (PDT) Received: by 10.78.174.8 with HTTP; Fri, 4 Aug 2006 23:19:31 -0700 (PDT) Message-ID: Date: Sat, 5 Aug 2006 07:19:31 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Defining Destinations: applicationContext or activemq XML? In-Reply-To: <5656184.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5656184.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/4/06, jcarreira wrote: > Should I define my destinations in my applicationContext.xml or my > activemq.xml? The classes ActiveMQQueue and ActiveMQTopic are simple POJOs (kinda like URL and URI classes) that don't do very much other than represent the name of a destination. So you can define them wherever you like. > I need to use my Queues in the rest of my Spring > configuration, Then spring.xml sounds fine. > but ActiveMQ doesn't seem to see the Queues (via JMX) unless > I define them in the activemq.xml. Ah - some background here... http://incubator.apache.org/activemq/how-do-i-create-new-destinations.html If you create destination objects on the 'client side' then they don't appear in JMX until they are actually used on the broker (folks send messages to them etc). However if you tell the broker to start the destinations on startup they appear instantly in JMX http://incubator.apache.org/activemq/configure-startup-destinations.html -- James ------- http://radio.weblogs.com/0112098/