@Override public void close() { threadAwareContext.assertNotCompletionListenerThreadRuntime(); threadAwareContext.assertNotMessageListenerThreadRuntime(); try { synchronized (this) { if (session != null) session.close(); connection.closeFromContext(); closed = true; } } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public void close() { threadAwareContext.assertNotCompletionListenerThreadRuntime(); threadAwareContext.assertNotMessageListenerThreadRuntime(); try { synchronized (this) { if (session != null) session.close(); connection.closeFromContext(); closed = true; } } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public void close() { threadAwareContext.assertNotCompletionListenerThreadRuntime(); threadAwareContext.assertNotMessageListenerThreadRuntime(); try { synchronized (this) { if (session != null) session.close(); connection.closeFromContext(); closed = true; } } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public void close() { threadAwareContext.assertNotCompletionListenerThreadRuntime(); threadAwareContext.assertNotMessageListenerThreadRuntime(); try { synchronized (this) { if (session != null) session.close(); connection.closeFromContext(); closed = true; } } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }
@Override public void close() { threadAwareContext.assertNotCompletionListenerThreadRuntime(); threadAwareContext.assertNotMessageListenerThreadRuntime(); try { synchronized (this) { if (session != null) session.close(); connection.closeFromContext(); closed = true; } } catch (JMSException e) { throw JmsExceptionUtils.convertToRuntimeException(e); } }