[jboss-cvs] JBoss Messaging SVN: r7897 - in branches/Branch_1_4/src/main/org/jboss/jms/client: state and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 9 00:39:23 EST 2009


Author: gaohoward
Date: 2009-11-09 00:39:23 -0500 (Mon, 09 Nov 2009)
New Revision: 7897

Modified:
   branches/Branch_1_4/src/main/org/jboss/jms/client/container/ConnectionAspect.java
   branches/Branch_1_4/src/main/org/jboss/jms/client/state/ConnectionState.java
Log:
JBMESSAGING-1756


Modified: branches/Branch_1_4/src/main/org/jboss/jms/client/container/ConnectionAspect.java
===================================================================
--- branches/Branch_1_4/src/main/org/jboss/jms/client/container/ConnectionAspect.java	2009-11-09 04:09:58 UTC (rev 7896)
+++ branches/Branch_1_4/src/main/org/jboss/jms/client/container/ConnectionAspect.java	2009-11-09 05:39:23 UTC (rev 7897)
@@ -150,8 +150,6 @@
    public Object handleStop(Invocation invocation) throws Throwable
    {
       ConnectionState currentState = getConnectionState(invocation);
-      // If the session is being sent to the Cache, we need to clear the Thread because of the ContextClassLoader
-      currentState.clearExecutors();
       currentState.setStarted(false);
       currentState.setJustCreated(false);
       return invocation.invokeNext();

Modified: branches/Branch_1_4/src/main/org/jboss/jms/client/state/ConnectionState.java
===================================================================
--- branches/Branch_1_4/src/main/org/jboss/jms/client/state/ConnectionState.java	2009-11-09 04:09:58 UTC (rev 7896)
+++ branches/Branch_1_4/src/main/org/jboss/jms/client/state/ConnectionState.java	2009-11-09 05:39:23 UTC (rev 7897)
@@ -183,24 +183,6 @@
    }
 
    // Public ---------------------------------------------------------------------------------------
-
-   /** 
-    * 
-    * Session Executors will store the ClassLoader on the threads they were created.
-    * When a JMSSession is reused by JCA it can reuse it on different application context (i.e. different ClassLoaders)
-    * This method should be called before the Session is stored on the JCA's cache
-    * @throws InterruptedException 
-    * 
-    * */
-   public void clearExecutors() throws InterruptedException
-   {
-      Iterator iterator = getChildren().iterator();
-      while (iterator.hasNext())
-      {
-         SessionState state = (SessionState) iterator.next();
-      }
-      
-   }
    
    public ResourceManager getResourceManager()
    {




More information about the jboss-cvs-commits mailing list