Re: .process(MyProcessor.class)

2022-09-22 Thread Claus Ibsen
> public void process(Exchange exchange) throws Exception { > // do something... > } > > } > > Then you can easily call this processor from a Java such as: > > from("activemq:myQueue").process(MyProcessor.class); > -- Claus Ibsen - http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

.process(MyProcessor.class)

2022-09-22 Thread Michael Rambichler
essor like this: public class MyProcessor implements Processor { public void process(Exchange exchange) throws Exception { // do something... } } Then you can easily call this processor from a Java such as: from("activemq:myQueue").process(MyProcessor.class);