Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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)