This closes #194

This commit is contained in:
Clebert Suconic 2015-10-12 12:56:58 -04:00
commit 5bfb7ac1ad
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 {