camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Change JMS Consumer broker address dynamically
Date Wed, 26 May 2010 13:52:47 GMT
Claus Ibsen wrote:
> On Wed, May 26, 2010 at 6:36 AM, jejmaster <jejmaster@gmail.com> wrote:
>> Hi,
>>
>> I would like to inquire regarding changing the JMS broker url on run time.
>> Basically, I would like to manage the broker url in the database and for
>> every change, it will automatically point to that jms broker url which camel
>> is polling to.
>>
>> Any suggestions?
>>
> 
> You want a Camel JMS Client to dynamic change to a different remote broker URL?
> 
> You can do this by stopping the consumer. Change the broker URL and
> start the consumer again.

Just one more note you need to update the connectionFactory's brokerURL 
from the JmsEndpoint or the JmsConfiguration which is hold by JmsComponent.


> 
> 
>> Thanks.
>> --
>> View this message in context: http://old.nabble.com/Change-JMS-Consumer-broker-address-dynamically-tp28676362p28676362.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 


Mime
View raw message