public void process(Exchange exchange) {
try {
String corrId = (String) exchange.getProperty(PROPERTY_CORR_ID + "." + name);
if (corrId != null) {
JmsRequestor item = pool.resume(corrId);
synchronized (item) {
try {
processExchange(item, exchange);
} finally {
item.close();
}
}
} else {
JmsRequestor item = pool.newRequestor();
synchronized (item) {
try {
item.begin();
processExchange(item, exchange);
} finally {
item.close();
}
}
}
} catch (Exception e) {
// TODO what id the problem is a JMS exception or related