Author: bstansberry(a)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();
Show replies by date