camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: update JNDI camel registery at runtime
Date Fri, 28 Feb 2014 07:11:46 GMT

I think there is API on PropertyPlaceholderDelegateRegistry to get the
delegate which is your jndi registry.

On Thu, Feb 27, 2014 at 10:09 PM, simholte <> wrote:
> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:
Make your Camel applications look hawt, try:

View raw message