-
1. Re: Camel route as a template for other routes
ffang Nov 10, 2010 9:47 PM (in response to sujoebose)Hi,
I think probably you can use properties placeholder and ConfigAdmin OSGi service to replace source and destination url during runtime.
You may need take a look at camel-osgi example shipped with kit to get more details how to use properties placeholder in OSGi container.
Freeman
-
2. Re: Camel route as a template for other routes
njiang Nov 25, 2010 2:26 AM (in response to sujoebose)You can change the route destination endpoint dynamically by using Dynamic Router or Recipient List
But I don't think you can create several routes without calling the API of CamelContext after the bundle is actived.
Willem
-
3. Re: Camel route as a template for other routes
davsclaus Nov 25, 2010 5:35 AM (in response to sujoebose)Yeah using the model API (xxxDefinition) you can create a template for a route. And use that to create new runtime routes.
Then you can just change the endpoint URIs of the model before you create a route.
CamelContext has API.
And you can use a RouteBuilder to create the template route, or do it manually using the xxxDefinition API.