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 768918C1F for ; Wed, 24 Aug 2011 22:45:02 +0000 (UTC) Received: (qmail 91807 invoked by uid 500); 24 Aug 2011 22:45:01 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 91633 invoked by uid 500); 24 Aug 2011 22:45:01 -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 91616 invoked by uid 99); 24 Aug 2011 22:45:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2011 22:45:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joe.niski@nwea.org designates 165.212.64.22 as permitted sender) Received: from [165.212.64.22] (HELO gateout02.mbox.net) (165.212.64.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2011 22:44:52 +0000 Received: from gateout02.mbox.net (gwo2-lo [127.0.0.1]) by gateout02.mbox.net (Postfix) with ESMTP id 49E584BDD38 for ; Wed, 24 Aug 2011 22:44:31 +0000 (GMT) X-USANET-Received: from gateout02.mbox.net [127.0.0.1] by gateout02.mbox.net via mtad (C8.MAIN.3.72B) with ESMTP id 162PHXwSd6480Mo2; Wed, 24 Aug 2011 22:44:29 -0000 Received: from S1HUB1.EXCHPROD.USA.NET [165.212.120.254] by gateout02.mbox.net via smtad (C8.MAIN.3.72B) with ESMTPS id XID269PHXwSd1190Xo2; Wed, 24 Aug 2011 22:44:29 -0000 X-USANET-Source: 165.212.120.254 IN joe.niski@nwea.org S1HUB1.EXCHPROD.USA.NET X-USANET-MsgId: XID269PHXwSd1190Xo2 Received: from [10.50.1.58] (70.98.171.2) by exchange.postoffice.net (10.120.220.31) with Microsoft SMTP Server (TLS) id 8.3.83.0; Wed, 24 Aug 2011 22:44:29 +0000 Message-ID: <4E557ECB.6040905@nwea.org> Date: Wed, 24 Aug 2011 15:44:27 -0700 From: Joe Niski Reply-To: joe.niski@nwea.org Organization: NWEA User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: "users@activemq.apache.org" Subject: Re: Running multiple activemq instances on the same server References: <1313933488924-3758394.post@n4.nabble.com> <1314026357195-3760444.post@n4.nabble.com> <4E53E40E.1020505@nwea.org> <4E55469E.3050408@gmail.com> In-Reply-To: <4E55469E.3050408@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Here's the top of my activemq.xml: file:${activemq.base}/conf/messaging.conf file:${activemq.base}/conf/credentials.properties As you can see, i'm using Spring, in our case because we're driving Camel routing configurations via imported xml files, too. Here's a an example of using property placeholders from further down the file, standard Spring: and another: i hope this helps, Joe *Joe Niski* Senior Developer - Information Services | NWEA� PHONE 503.548.5207 | FAX 503.639.7873 NWEA.ORG | Partnering to help all kids learn� On 08/24/2011 11:44 AM, papa nagy wrote: > "we've externalized a lot of parameter values into properties file and > use Spring's PropertyPlaceholderConfigurer in our xml" > > this is what i am trying to do, unfortunately using xbean tags, > the spring placeholder are ignored. i want to run multiple "embedded" > brokers with tomcat using different ports for each instance. could you > post your broker configuration with the spring property placeholders?