[jboss-cvs] JBossAS SVN: r81705 - trunk/testsuite/src/main/org/jboss/test/cluster/testutil.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 27 05:09:20 EST 2008


Author: bstansberry at jboss.com
Date: 2008-11-27 05:09:20 -0500 (Thu, 27 Nov 2008)
New Revision: 81705

Modified:
   trunk/testsuite/src/main/org/jboss/test/cluster/testutil/SessionTestUtil.java
Log:
Restore programatic disabling of new JBC async stuff
Mimic the StandardHostValve

Modified: trunk/testsuite/src/main/org/jboss/test/cluster/testutil/SessionTestUtil.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/testutil/SessionTestUtil.java	2008-11-27 10:08:11 UTC (rev 81704)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/testutil/SessionTestUtil.java	2008-11-27 10:09:20 UTC (rev 81705)
@@ -168,8 +168,12 @@
       brc.setEnabled(!local && !totalReplication);
       
       config.setUseRegionBasedMarshalling(marshalling);
-      config.setInactiveOnStartup(marshalling);      
+      config.setInactiveOnStartup(marshalling);    
       
+      // No async marshalling or notifications
+      config.setSerializationExecutorPoolSize(0);
+      config.setListenerAsyncPoolSize(0);  
+      
       // Block for commits -- no races between test driver and replication
       config.setSyncCommitPhase(true);
       config.setSyncRollbackPhase(true);
@@ -250,6 +254,8 @@
       Response response = new Response();
       request.setResponse(response);
       valve.invoke(request, response);
+      // StandardHostValve calls request.getSession(false) on way out, so we will too
+      request.getSession(false);
       request.recycle();
    }
    




More information about the jboss-cvs-commits mailing list