On Thu, Dec 29, 2011 at 1:38 AM, xiangqiuzhao <xiangqiuz...@gmail.com> wrote: > can't use the encoder or decoder in URI? must use bean id ? i wan't to use > Camel API only. how to ? >
The bean must be looked up in the registry. The registry is also available in pure Java mode (which I assume you mean by Camel API only). SimpleRegistry registry = new SimpleRegistry(); registry.put("myDecoder", new MyDecoder); CamelContext context = new DefaultCamelContext(registry); > -- > View this message in context: > http://camel.465427.n5.nabble.com/Netty-for-TCP-communication-tp3409969p5106449.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/