void configure()throws NumberFormatException {  
                
                
                
                JndiRegistry jndi=new JndiRegistry()
                jndi.bind("XMLCodec",new XMLCodec())
                context = new DefaultCamelContext(jndi.getContext())
                
                from('mina:tcp://0.0.0.0:9091?sync=true&codec=#XMLCodec')
                .process(new MinaProcessor())
                .to('direct:inputcsgAdapter');
}

--
View this message in context: 
http://camel.465427.n5.nabble.com/For-writing-a-custom-codec-for-Mina-EndPoint-where-should-I-place-the-code-for-registering-with-JNDI-tp4586277p4586493.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to