Package javax.jms

Examples of javax.jms.IllegalStateRuntimeException


      if (session == null)
      {
         synchronized (this)
         {
            if (closed)
               throw new IllegalStateRuntimeException("Context is closed");
            if (session == null)
            {
               try
               {
                  if (xa)
View Full Code Here


   @Override
   public void acknowledge()
   {
      checkSession();
      if (closed)
         throw new IllegalStateRuntimeException("Context is closed");
      try
      {
         if (lastMessagesWaitingAck != null)
         {
            lastMessagesWaitingAck.acknowledge();
View Full Code Here

   }

   private synchronized void checkAutoStart() throws JMSException
   {
      if (closed)
         throw new IllegalStateRuntimeException("Context is closed");
      if (autoStart)
      {
         connection.start();
      }
   }
View Full Code Here

    */
   public static JMSRuntimeException convertToRuntimeException(JMSException e)
   {
      if (e instanceof javax.jms.IllegalStateException)
      {
         return new IllegalStateRuntimeException(e.getMessage(), e.getErrorCode(), e);
      }
      if (e instanceof InvalidClientIDException)
      {
         return new InvalidClientIDRuntimeException(e.getMessage(), e.getErrorCode(), e);
      }
View Full Code Here

      if (session == null)
      {
         synchronized (this)
         {
            if (closed)
               throw new IllegalStateRuntimeException("Context is closed");
            if (session == null)
            {
               try
               {
                  if(xa)
View Full Code Here

   @Override
   public void acknowledge()
   {
      checkSession();
      if (closed)
         throw new IllegalStateRuntimeException("Context is closed");
      try
      {
         if (sessionMode == Session.AUTO_ACKNOWLEDGE || sessionMode == Session.DUPS_OK_ACKNOWLEDGE)
            return;
         session.commit();
View Full Code Here

   }

   private synchronized void checkAutoStart() throws JMSException
   {
      if (closed)
         throw new IllegalStateRuntimeException("Context is closed");
      if (autoStart)
      {
         connection.start();
      }
   }
View Full Code Here

    */
   private void assertNotMessageListenerThread()
   {
      if (completionListenerThread == Thread.currentThread())
      {
         throw new IllegalStateRuntimeException("Calling own context from CompletionListener");
      }
   }
View Full Code Here

      if (session == null)
      {
         synchronized (this)
         {
            if (closed)
               throw new IllegalStateRuntimeException("Context is closed");
            if (session == null)
            {
               try
               {
                  if(xa)
View Full Code Here

   @Override
   public void acknowledge()
   {
      checkSession();
      if (closed)
         throw new IllegalStateRuntimeException("Context is closed");
      try
      {
         if (lastMessagesWaitingAck != null)
         {
            lastMessagesWaitingAck.acknowledge();
View Full Code Here

TOP

Related Classes of javax.jms.IllegalStateRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.