Examples of ThreadContextClassLoaderChanger


Examples of org.jboss.jms.util.ThreadContextClassLoaderChanger

      }
   }

   public void setClientID(String clientID) throws JMSException
   {
      ThreadContextClassLoaderChanger tccc = new ThreadContextClassLoaderChanger();

      try
      {
         tccc.set(getClass().getClassLoader());

         delegate.setClientID(clientID);
      }
      finally
      {
         tccc.restore();
      }
   }
View Full Code Here

Examples of org.jboss.jms.util.ThreadContextClassLoaderChanger

      if (transacted)
      {
         acknowledgeMode = Session.SESSION_TRANSACTED;
      }

      ThreadContextClassLoaderChanger tccc = new ThreadContextClassLoaderChanger();

      try
      {
         tccc.set(getClass().getClassLoader());

         SessionDelegate sessionDelegate =
            delegate.createSessionDelegate(transacted, acknowledgeMode, isXA);
         return new JBossSession(sessionDelegate, type);
      }
      finally
      {
         tccc.restore();
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.