camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <>
Subject Re: Application naivity about endpoints
Date Tue, 07 Oct 2014 11:21:32 GMT
If you are deploying to a web container then you should refer to the 
ConnectionFactory using JNDI. If you are using OSGi you can use an OSGi 
This way you avoid making your route bundle depend on the jms provider.


On 07.10.2014 13:18, James Green wrote:
> I want my application to connect to ActiveMQ today, and possibly RabbitMQ
> tomorrow. Therefore I do not want anything in code to mention either - it
> should just be a matter of altering a .properties file and restarting,
> right?
> However we're having trouble working out how to do this without expressly
> referring to individual connection factories in code.
> Are we missing something?
> Thanks,
> James

Christian Schneider

Open Source Architect

View raw message