[jbosscache-commits] JBoss Cache SVN: r7209 - core/trunk/src/test/java/org/jboss/cache/integration/websession/util.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Wed Nov 26 23:07:17 EST 2008
Author: bstansberry at jboss.com
Date: 2008-11-26 23:07:17 -0500 (Wed, 26 Nov 2008)
New Revision: 7209
Modified:
core/trunk/src/test/java/org/jboss/cache/integration/websession/util/Request.java
Log:
Emulate the StandardHostValve
Modified: core/trunk/src/test/java/org/jboss/cache/integration/websession/util/Request.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/integration/websession/util/Request.java 2008-11-27 04:06:45 UTC (rev 7208)
+++ core/trunk/src/test/java/org/jboss/cache/integration/websession/util/Request.java 2008-11-27 04:07:17 UTC (rev 7209)
@@ -63,6 +63,9 @@
manager.endBatch();
}
}
+
+ // StandardHostValve calls getSession(false) on the way out, so...
+ getSession(false);
}
/**
@@ -77,7 +80,10 @@
}
if (session != null && !session.isValid())
+ {
session = null;
+ getSession(create);
+ }
if (create && session == null)
session = manager.createSession();
More information about the jbosscache-commits
mailing list