Hi
Does anybody know if JBI specs allows message re-assignment from source
exchange to target exchange? In other word, does a component be able to pass a
message from inbound exchange to outbound exchange as following:
// Receiving inbound exchange
InOnly inbound = (InOnly) deliveryChannel.accept();
// Doing readonly operation on "in" message
// ...
// (Reset inputStream/reader of stream content?)
// ...
// Passing message
InOnly outbound = messageExchangeFactory.createInOnly();
outbound.setInMessage(inbound.getMessage("in"));
This seems to work with ServiceMix but I don't understand if I can use this
behaviour or if a new normalized message must be created.