template.execute(new SessionCallback() {
public Object doInJms(Session session) throws JMSException {
try {
sendError(exchange, error, session, context);
} catch (Exception e) {
throw new ListenerExecutionFailedException("Exchange processing failed", e);
}
return null;
}
});
return;