You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by gimel <or...@gmail.com> on 2008/11/27 09:29:55 UTC

reading activemq.xml from another activemq.xml

Hi,

I'd like to be able to have my activemq.xml outside of the conf folder.
i think that i didn't see a way to ask it be called from somewhere else.
if there is a way to include/import my external xml from the internal, will
be great as well...

regards
-- 
View this message in context: http://www.nabble.com/reading-activemq.xml-from-another-activemq.xml-tp20715212p20715212.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: reading activemq.xml from another activemq.xml

Posted by gimel <or...@gmail.com>.
thanks a lot, it's working :-)

thanks for the assistance ...


Dejan Bosanac-3 wrote:
> 
> In case of windows ${ACTIVEMQ_HOME} is actually %ACTIVEMQ_HOME% but if
> you plan to put your XML file in the conf/ folder you can just use
> 
> xbean:conf/activemq2.xml
> 
> As for the service question, yes you are right, just add
> 
> wrapper.app.parameter.3=xbean:conf/activemq2.xml
> 
> to your bin/win32/wrapper.conf
> 
> Cheers
> 
> -- 
> Dejan Bosanac
> 
> 
> http://www.ttmsolutions.com - get a free ActiveMQ user guide
> 
> ActiveMQ in Action - http://www.manning.com/snyder/
> Scripting in Java - http://www.scriptinginjava.net
> 
> 
> 
> gimel wrote:
>> thanks, but i still can't manage to do so :
>> i tried to add something like -
>> xbean:/${ACTIVEMQ_HOME}/conf/activemq2.xml
>> to the command, and got :
>> java.net.URISyntaxException: Illegal character in path at index 8:
>> xbean:/${ACTIVEMQ_HOME}/conf/activemq2.xml
>>
>> beside, i need to add it to the service, so if it's possible to say where
>> to
>> add it (i assume it's something like 'wrapper.app.parameter.3'), would be
>> great as well.
>>
>> thanks
>>
>>
>> Dejan Bosanac-3 wrote:
>>   
>>> Hi,
>>>
>>> just run your ActiveMQ with an additional parameter representing URL of
>>> the config file, like
>>>
>>> ${ACTIVEMQ_HOME}/bin/activemq xbean:/path/to/your/activemq.xml
>>>
>>> Cheers
>>>
>>> -- 
>>> Dejan Bosanac
>>>
>>>
>>> http://www.ttmsolutions.com - get a free ActiveMQ user guide
>>>
>>> ActiveMQ in Action - http://www.manning.com/snyder/
>>> Scripting in Java - http://www.scriptinginjava.net
>>>
>>>
>>>
>>> gimel wrote:
>>>     
>>>> Hi,
>>>>
>>>> I'd like to be able to have my activemq.xml outside of the conf folder.
>>>> i think that i didn't see a way to ask it to be called from somewhere
>>>> else.
>>>> if there is a way to include/import my external xml from the internal,
>>>> will
>>>> be great as well...
>>>>
>>>> regards
>>>>   
>>>>       
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/reading-activemq.xml-from-another-activemq.xml-tp20715212p20720877.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: reading activemq.xml from another activemq.xml

Posted by Dejan Bosanac <de...@ttmsolutions.com>.
In case of windows ${ACTIVEMQ_HOME} is actually %ACTIVEMQ_HOME% but if
you plan to put your XML file in the conf/ folder you can just use

xbean:conf/activemq2.xml

As for the service question, yes you are right, just add

wrapper.app.parameter.3=xbean:conf/activemq2.xml

to your bin/win32/wrapper.conf

Cheers

-- 
Dejan Bosanac


http://www.ttmsolutions.com - get a free ActiveMQ user guide

ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net



gimel wrote:
> thanks, but i still can't manage to do so :
> i tried to add something like - xbean:/${ACTIVEMQ_HOME}/conf/activemq2.xml
> to the command, and got :
> java.net.URISyntaxException: Illegal character in path at index 8:
> xbean:/${ACTIVEMQ_HOME}/conf/activemq2.xml
>
> beside, i need to add it to the service, so if it's possible to say where to
> add it (i assume it's something like 'wrapper.app.parameter.3'), would be
> great as well.
>
> thanks
>
>
> Dejan Bosanac-3 wrote:
>   
>> Hi,
>>
>> just run your ActiveMQ with an additional parameter representing URL of
>> the config file, like
>>
>> ${ACTIVEMQ_HOME}/bin/activemq xbean:/path/to/your/activemq.xml
>>
>> Cheers
>>
>> -- 
>> Dejan Bosanac
>>
>>
>> http://www.ttmsolutions.com - get a free ActiveMQ user guide
>>
>> ActiveMQ in Action - http://www.manning.com/snyder/
>> Scripting in Java - http://www.scriptinginjava.net
>>
>>
>>
>> gimel wrote:
>>     
>>> Hi,
>>>
>>> I'd like to be able to have my activemq.xml outside of the conf folder.
>>> i think that i didn't see a way to ask it to be called from somewhere
>>> else.
>>> if there is a way to include/import my external xml from the internal,
>>> will
>>> be great as well...
>>>
>>> regards
>>>   
>>>       
>>
>>     
>
>   


Re: reading activemq.xml from another activemq.xml

Posted by gimel <or...@gmail.com>.
thanks, but i still can't manage to do so :
i tried to add something like - xbean:/${ACTIVEMQ_HOME}/conf/activemq2.xml
to the command, and got :
java.net.URISyntaxException: Illegal character in path at index 8:
xbean:/${ACTIVEMQ_HOME}/conf/activemq2.xml

beside, i need to add it to the service, so if it's possible to say where to
add it (i assume it's something like 'wrapper.app.parameter.3'), would be
great as well.

thanks


Dejan Bosanac-3 wrote:
> 
> Hi,
> 
> just run your ActiveMQ with an additional parameter representing URL of
> the config file, like
> 
> ${ACTIVEMQ_HOME}/bin/activemq xbean:/path/to/your/activemq.xml
> 
> Cheers
> 
> -- 
> Dejan Bosanac
> 
> 
> http://www.ttmsolutions.com - get a free ActiveMQ user guide
> 
> ActiveMQ in Action - http://www.manning.com/snyder/
> Scripting in Java - http://www.scriptinginjava.net
> 
> 
> 
> gimel wrote:
>> Hi,
>>
>> I'd like to be able to have my activemq.xml outside of the conf folder.
>> i think that i didn't see a way to ask it to be called from somewhere
>> else.
>> if there is a way to include/import my external xml from the internal,
>> will
>> be great as well...
>>
>> regards
>>   
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/reading-activemq.xml-from-another-activemq.xml-tp20715212p20717237.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: reading activemq.xml from another activemq.xml

Posted by Dejan Bosanac <de...@ttmsolutions.com>.
Hi,

just run your ActiveMQ with an additional parameter representing URL of
the config file, like

${ACTIVEMQ_HOME}/bin/activemq xbean:/path/to/your/activemq.xml

Cheers

-- 
Dejan Bosanac


http://www.ttmsolutions.com - get a free ActiveMQ user guide

ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net



gimel wrote:
> Hi,
>
> I'd like to be able to have my activemq.xml outside of the conf folder.
> i think that i didn't see a way to ask it to be called from somewhere else.
> if there is a way to include/import my external xml from the internal, will
> be great as well...
>
> regards
>