You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by osian <os...@osian.me.uk> on 2007/03/26 15:28:33 UTC

Launching ActiveMQ with an Alternative activemq.xml configuration file

Hi all,

Is it possible to, when launching ActiveMQ, from either the command line or
as a windows service (through the wrapper.conf file), to tell activemq to
use a different activemq.xml configuration file? e.g. a file located in
ACTIVEMQ_HOME/conf/alternateConfig.xml

Thanks in advance,
Osian
-- 
View this message in context: http://www.nabble.com/Launching-ActiveMQ-with-an-Alternative-activemq.xml-configuration-file-tf3466983s2354.html#a9673111
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Launching ActiveMQ with an Alternative activemq.xml configuration file

Posted by osian <os...@osian.me.uk>.
That works great, and to use the same within the wrapper.config, just add a
new line with the following

wrapper.app.parameter.2=xbean:alternateConfig.xml

Thanks again,
Osh


James.Strachan wrote:
> 
> On 3/26/07, osian <os...@osian.me.uk> wrote:
>>
>> Hi all,
>>
>> Is it possible to, when launching ActiveMQ, from either the command line
>> or
>> as a windows service (through the wrapper.conf file), to tell activemq to
>> use a different activemq.xml configuration file? e.g. a file located in
>> ACTIVEMQ_HOME/conf/alternateConfig.xml
> 
> More details here...
> http://activemq.apache.org/broker-configuration-uri.html
> 
> basically you just use
> 
> activemq xbean:myconfig.xml
> 
> where myconfig.xml is on the classpath.
> 
> in 4.2 we support arbitrary URLs
> http://activemq.apache.org/broker-xbean-uri.html
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Launching-ActiveMQ-with-an-Alternative-activemq.xml-configuration-file-tf3466983s2354.html#a9674150
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Launching ActiveMQ with an Alternative activemq.xml configuration file

Posted by James Strachan <ja...@gmail.com>.
On 3/26/07, osian <os...@osian.me.uk> wrote:
>
> Hi all,
>
> Is it possible to, when launching ActiveMQ, from either the command line or
> as a windows service (through the wrapper.conf file), to tell activemq to
> use a different activemq.xml configuration file? e.g. a file located in
> ACTIVEMQ_HOME/conf/alternateConfig.xml

More details here...
http://activemq.apache.org/broker-configuration-uri.html

basically you just use

activemq xbean:myconfig.xml

where myconfig.xml is on the classpath.

in 4.2 we support arbitrary URLs
http://activemq.apache.org/broker-xbean-uri.html

-- 

James
-------
http://radio.weblogs.com/0112098/