ARTEMIS-242 don't throw j.l.ISE from producer

This commit is contained in:
jbertram 2015-10-12 11:20:04 -05:00
parent 1b49559c64
commit 1baa5a0d8b
1 changed files with 6 additions and 0 deletions

View File

@ -479,6 +479,12 @@ public class ActiveMQMessageProducer implements MessageProducer, QueueSender, To
catch (ActiveMQException e) {
throw JMSExceptionHelper.convertFromActiveMQException(e);
}
catch (java.lang.IllegalStateException e) {
JMSException je = new IllegalStateException(e.getMessage());
je.setStackTrace(e.getStackTrace());
je.initCause(e);
throw je;
}
}
private void checkClosed() throws JMSException {