camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <>
Subject Re: Best practice when choosing configuration between test and production server
Date Wed, 09 Mar 2011 11:59:55 GMT

you should use properties for the endpoint urls or for parts of them. 
Often it is also a good idea to split spring contexts into a fixed part 
and a part that is different for the stages.

In the test project deploy your test properties in src/test/resources.
In the server then deploy your real properties on the classpath. I have 
also seen projects that use a -D variable for starting the server. So 
for example
they have -Dstage=prod to indicate te production system. Then they can 
use this property in the spring config to load different property files.


Am 09.03.2011 12:16, schrieb Laurentiu Trica:
> Hello,
> I'm using Camel with Servicemix and I have a hard time managing the test and
> production server configurations for endpoints.
> Is there a way to go in this cases?
> I mean, I have different route details for test and production servers, so I
> have to constantly pay attention when deploying.
> And this is a stopper for automatic testing my application.
> Any piece of information is welcomed!
> Thank you.


View raw message