[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-users
Subject: Re: Running multiple activemq instances on the same server
From: Joe Niski <joe.niski () nwea ! org>
Date: 2011-08-24 22:44:27
Message-ID: 4E557ECB.6040905 () nwea ! org
[Download RAW message or body]
Here's the top of my activemq.xml:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd">
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>file:${activemq.base}/conf/messaging.conf</value>
<value>file:${activemq.base}/conf/credentials.properties</value>
</list>
</property>
</bean>
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:
<managementContext>
<managementContext createConnector="true"
connectorPort="${remote_jmxConnectorPort}"/>
</managementContext>
and another:
<transportConnectors>
<!-- by convention we use 51616 and 51617 (for ssl) so as not to
conflict with Geronimo's embedded ActiveMQ defaults (61616 & 61617) -->
<transportConnector name="openwire"
uri="tcp://0.0.0.0:${remote_openwirePortNumber}?keepAlive=true&soTimeout=30000"/>
<transportConnector name="ssl" uri="ssl://0.0.0.0:${remote_sslPortNumber}"/>
</transportConnectors>
i hope this helps,
Joe
*Joe Niski*
Senior Developer - Information Services | NWEA™
PHONE 503.548.5207 | FAX 503.639.7873
NWEA.ORG <http://www.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<broker> 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?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic