Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 66223 invoked from network); 9 Aug 2006 13:55:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Aug 2006 13:55:08 -0000 Received: (qmail 50038 invoked by uid 500); 9 Aug 2006 13:55:07 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 50024 invoked by uid 500); 9 Aug 2006 13:55:07 -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 49979 invoked by uid 99); 9 Aug 2006 13:55:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 06:55:07 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 66.249.82.226 as permitted sender) Received: from [66.249.82.226] (HELO wx-out-0506.google.com) (66.249.82.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 06:55:06 -0700 Received: by wx-out-0506.google.com with SMTP id i27so143928wxd for ; Wed, 09 Aug 2006 06:54:45 -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=uS5pNQuT+/H7WvlBX0TqQh6N7QKZaFWz58x1NFBa8MonNdPvvbGhuO4UI1+JXqAmGEBp5FuilcM1+BOQFfLF88HK17JpvBv64jr4dLawnpU9bc4TSi0HZ9O8kp6OTlEcwitfPd+ZaZKM09204KVD/ryikATwWZyA7fzhAWe90Cc= Received: by 10.78.193.19 with SMTP id q19mr350077huf; Wed, 09 Aug 2006 06:54:45 -0700 (PDT) Received: by 10.78.173.20 with HTTP; Wed, 9 Aug 2006 06:54:45 -0700 (PDT) Message-ID: Date: Wed, 9 Aug 2006 14:54:45 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: beginner needs help with topology In-Reply-To: <5725469.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: <5710466.post@talk.nabble.com> <5725469.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/9/06, nkiesel wrote: > > >> Also what is the > >> recommended way to XML-configure an embedded broker? > > >http://incubator.apache.org/activemq/how-do-i-embed-a-broker-inside-a-connection.html > > I read this, but the XML config require XBean/Spring which I currently don't > use. If you are not using the XML configuration then I'd suggest reading the JavaDoc - starting wtih BrokerService... http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/broker/BrokerService.html also read this which shows the basic Java code to use.. http://incubator.apache.org/activemq/how-do-i-embed-a-broker-inside-a-connection.html > I also found > > http://svn.apache.org/repos/asf/incubator/activemq/trunk/assembly/src/test/java/org/apache/activemq/config/BrokerXmlConfigTest.java > but there the nice > connectionFactory.setBrokerXmlConfig("file:src/sample-conf/default.xml") is > commented out and I also don't find it in the API. So my code currently > does > ActiveMQConnectionFactory aqcf = new > ActiveMQConnectionFactory("vm://localhost"); > Properties prop = new Properties(); > prop.setProperty("brokerXmlConfig", "file:myCondig.xml")); > aqcf.populateProperties(prop); > I did not try to run this yet though. See this for more help http://incubator.apache.org/activemq/how-do-i-embed-a-broker-inside-a-connection.html > Based on your advise, I simplified my topology to use an embedded broker in > the master app and have the slave app read it's queue from there. I > currently don't envision more than one slave, so that should be ok. > > Thanks again for your comments. Is there a place (wiki?) where I should > post a summary of my setup once I'm done and it's actually working? Sure that'd be great. I've created a page for example configurations.. http://goopen.org/confluence/display/ACTIVEMQ/User+Submitted+Configurations There's a link to this page from here http://activemq.org/site/xml-configuration.html -- James ------- http://radio.weblogs.com/0112098/