All,

In my current application I use Spring appContext which has a
camel:camelContext.
Under it I have defined a camel:routeContextRef (which corresponds to the
routeContext in my routes.xml)

As per "How do I import routes from other XML files" in
http://camel.apache.org/configuring-camel.html
I am able to add multiple routes.xml with unique routeContextRef IDs.

What I noticed is that routeContextRef has to be unique for each (new)
routes.xml, otherwise 
the bean defenitions are Overriding/replaced (so I have to make
routeContextRef unique for each routes.xml)

However in my architecture - I am providing the messageBus as a service to
my clients, i.e. 
appContext is fixed. Clients can load multiple routes.xml into my
messageBus.

So what I am looking for is a generic/global camel:routeContextRef which
clients can use as routeContext in their routes.xml
i.e. I dont want my beans to be overridden.

How can i achive this in Camel?

regards,
D



--
View this message in context: 
http://camel.465427.n5.nabble.com/Using-camel-routeContextRef-under-camel-camelContext-tp5729133.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to