It depends on your runtime environment, which Registry is used:
- org.apache.camel.spring.spi.ApplicationContextRegistry
- org.apache.camel.blueprint.BlueprintContainerRegistry
- org.apache.camel.impl.CompositeRegistry
- org.apache.camel.impl.JndiRegistry
- org.apache.camel.core.osgi.OsgiServiceRegistry
- org.apache.camel.impl.PropertyPlaceholderDelegateRegistry
- org.apache.camel.impl.SimpleRegistry

Best,
Christian

On Thu, May 17, 2012 at 3:56 PM, sekaijin <[email protected]>wrote:

> the response is in my first post
>
>
> ==>CastException
>
> when you define your camel context Camel create a new Jndi resgisty or un
> osgi get de osgi jndiRegistry
>
> but when you call getContext().getRegistry(); camel do not return this
> registry but an registryProxy
> that not permit to get the real registry and not have bind method
>
> A+JYT
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-register-a-datasource-on-configure-method-or-constructor-of-a-RoutBuilder-tp5595165p5711404.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to