How can I in the 'configure' method of a RouteBuilder add beans to the
registry?

Im in a RouteBuilder creating a route using Netty. The Netty URL reference
encoder/decoder beans. I need to create and insert these beans in the
registry.

The Netty description (last code example) indicates that you can simply do;

Registry registry = camelContext.getRegistry();
...
registry.bind("spf", serverPipelineFactory);

However the 'bind' method is not a method of the Registry interface (I think
its a method only of the JNDI registry). Im using Camel 2.10.2.

What am I doing wrong?



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

Reply via email to