return;
}
MessageExchange exchange = message
.getContent(MessageExchange.class);
ComponentContext context = message.getExchange().get(
ComponentContext.class);
CxfBcConsumer.this.configureExchangeTarget(exchange);
CxfBcConsumer.this.messages.put(exchange.getExchangeId(), message);
CxfBcConsumer.this.isOneway = message.getExchange().get(
BindingOperationInfo.class).getOperationInfo().isOneWay();
message.getExchange().setOneWay(CxfBcConsumer.this.isOneway);
try {
if (CxfBcConsumer.this.isOneway) {
context.getDeliveryChannel().send(exchange);
} else if (CxfBcConsumer.this.isSynchronous()) {
context.getDeliveryChannel().sendSync(exchange,
timeout * 1000);
process(exchange);
} else {
synchronized (CxfBcConsumer.this.messages.get(exchange.getExchangeId())) {
context.getDeliveryChannel().send(exchange);
CxfBcConsumer.this.messages.get(exchange.getExchangeId()).wait(timeout * 1000);
}
}
} catch (Exception e) {
throw new Fault(e);