> 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
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);