Hello.

I'm looking for a way to configure some URI in Camel routes taking into
account the server execution context.

For example, HTTP, JETTY or RESTLET endpoints URI must be given with a
complete URL, and forces the designer to be aware of the server's host and
port. If the platform needs to be reconfigured with different port or host
name, any dependent route has to be modified.

At the opposite, for example, I can package a CXF web service as a bundle,
configuring only the specific path part of the URL, and let the runtime bind
it to the current HTTP service with the right host and port.

How can I do this for simple Camel URI ? I've been looking for some way to
inject system properties, but with no concrete result. I suppose I can use a
property placeholder to set somthing like {{my.host}} or {{my.port}} from
each bundle properties file, and set the correct values there. But this
solution forces me to have as many properties file copies as deployed
bundles...

An idea ?

Thanks.



--
View this message in context: 
http://servicemix.396122.n5.nabble.com/Endpoints-URI-and-system-environment-tp5713987.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to