I create an instance of Camel at start up with the jndi registry:
   JndiRegistry registry = new JndiRegistry();
// register ejb's in the registry
...
   ModelCamelContext context = new DefaultCamelContext(registry); 


I'm making heavy use of ejb's in my routes so to make things easier I want
to register those routes in the JNDI registry.  This works fine if I have
all the JNDI mappings at start up but I want to allow a user to add a new
ejb at runtime.  When I try context.getRegistry() it's of type
PropertyPlaceholderDelegateRegistry and I can't find a way to cast it back
to the JNDI registry so I can bind additional beans.  Is my only option to
destroy and recreate my CamelContext?

Camel version 2.12.2




--
View this message in context: 
http://camel.465427.n5.nabble.com/update-JNDI-camel-registery-at-runtime-tp5748047.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to