Context context = createContext();
MessageExchange exchange = toNMS(message, context);
// TODO: copy protocol messages
//inMessage.setProperty(JbiConstants.PROTOCOL_HEADERS, getHeaders(message));
pendingMessages.put(exchange.getExchangeId(), context);
BaseLifeCycle lf = (BaseLifeCycle) endpoint.getServiceUnit().getComponent().getLifeCycle();
lf.sendConsumerExchange(exchange, MultiplexingConsumerProcessor.this.endpoint);
} catch (Throwable e) {
log.error("Error while handling jms message", e);
}
}
});