use of javax.jms.JMSRuntimeException in project tomee by apache.
the class JMS2AMQTest method sendToMdb.
@Test
public void sendToMdb() throws Exception {
try (final JMSContext context = cf.createContext()) {
context.createProducer().send(destination, TEXT);
assertTrue(Listener.sync());
} catch (final JMSRuntimeException ex) {
fail(ex.getMessage());
}
}
Aggregations