Search code examples
apache-camelapache-servicemix

How can one get local host address in Apache Camel


In a route (that exposes a REST service) i need to get the local host address/domain (so as I can build links to be included in a response body)

Is there a way to get the local host address from within camel ?

PS : running camel inside servicemix


Solution

  • there isn't a Camel specific way (that I know of), I'd just use an external property file to configure environment specific settings like this...you can then use camel properties to pull this in, etc.