Пример #1
0
 /**
  * Asserts a {@link javax.jms.CompletionListener} is not calling from its own {@Link
  * javax.jms.Connection} or from a {@Link javax.jms.MessageProducer} .
  *
  * <p>Note that the code must work without any need for further synchronization, as there is the
  * requirement that only one CompletionListener be called at a time. In other words,
  * CompletionListener calling is single-threaded.
  *
  * @see javax.jms.Connection#close()
  * @see javax.jms.MessageProducer#close()
  */
 public void assertNotCompletionListenerThread() throws javax.jms.IllegalStateException {
   if (completionListenerThread == Thread.currentThread()) {
     throw HornetQJMSClientBundle.BUNDLE.callingMethodFromCompletionListener();
   }
 }