Hmmm... tried that but doesnt work.

getContext() returns a
org.apache.camel.impl.PropertyPlaceholderDelegateRegistry object. Which cant
be cast to JndiRegistry.

My setup is the following; In a Spring based route I have bean A. Bean As
@Handler will create an instance of bean B, which is a RouteBuilder, and add
bean B's routes to the context. Bean A thus 'starts' bean B.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Programatically-adding-beans-to-a-registry-in-a-RouteBuilder-tp5729358p5729365.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to