ProcessorThe Processor Using a processor in a routeOnce you have written a class which implements processor like this... public class MyProcessor implements Processor { public void process(Exchange exchange) { // do something... } } You can then easily use this inside a route by declaring the bean in Spring, say via the XML (or registering it in JNDI if that is your Registry) <bean id="myProcessor" class="com.acme.MyProcessor"/> Then in Camel you can do from("activemq:myQueue").to("myProcessor"); Turning your processor into a full ComponentThere is a base class called ProcessorEndpoint So you just need to create a Component class by deriving from DefaultComponent See Also |