Hi Aaron
You could set the fault message to end up message processing in
"myProcessorA".
Here is a code snippet.
from("start").process(new Processor() {
public void process(Exchange exchange) throws
Exception {
Message message =
exchange.getFault();
message.setBody("it doesn't make business sense");
}
});
Willem
Aaron Crickenberger wrote:
Say I have the following route defined in XML:
<route>
<from uri="seda:start" />
<process ref="myProcessorA" />
<process ref="myProcessorB" />
<to uri="seda:end" />
<route>
If the myProcessorA processor recognizes that a message it's
processing doesn't make business sense, what could it do to prevent
the message from going any further in the route?
- aaron