THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
A common gotcha with JBI is not completing a message exchange. To make it simpler to use we have a helper method on PojoSupport/ComponentSupport and on the Client API called
Code Block |
---|
done(exchange) |
which completes a message exchange. The long hand way to do this is this code
Code Block |
---|
exchange.setStatus(ExchangeStatus.DONE); getDeliveryChannel().send(exchange); |
There are similar helper methods for
Code Block |
---|
Fault fault = ... fail(exchange, fault) |
Code Block |
---|
Exception error = ... fail(exchange, error) |