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