courier.deliver(jmsMessage);
} catch (CourierException e) {
throw new RuntimeException("Failed to deliver JMS Message to JMS " + destType + " '" + destName + "': " + e.getMessage());
}
} finally {
courier.cleanup();
}
}
private static void addJndiExtensions(JMSEpr epr) {
epr.getAddr().addExtension(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");