[jboss-cvs] JBossAS SVN: r63979 - in trunk/testsuite/src/resources/cluster/http: http-field-jdk5 and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jul 11 12:59:21 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-07-11 12:59:21 -0400 (Wed, 11 Jul 2007)
New Revision: 63979
Modified:
trunk/testsuite/src/resources/cluster/http/http-field-jdk5/modifySubject.jsp
trunk/testsuite/src/resources/cluster/http/http-field/modifySubject.jsp
Log:
Ignore PojoCacheAlreadyDetachedException
Modified: trunk/testsuite/src/resources/cluster/http/http-field/modifySubject.jsp
===================================================================
--- trunk/testsuite/src/resources/cluster/http/http-field/modifySubject.jsp 2007-07-11 16:56:57 UTC (rev 63978)
+++ trunk/testsuite/src/resources/cluster/http/http-field/modifySubject.jsp 2007-07-11 16:59:21 UTC (rev 63979)
@@ -13,5 +13,15 @@
// to be replicated.
ServletContext ctx = getServletConfig().getServletContext();
Person ben = (Person)ctx.getAttribute("TEST_PERSON");
- ben.setAge(new SecureRandom().nextInt(100));
+ try
+ {
+ ben.setAge(new SecureRandom().nextInt(100));
+ }
+ catch (org.jboss.cache.pojo.PojoCacheAlreadyDetachedException e)
+ {
+ // This is OK. We're checking that an operation on a detached
+ // pojo doesn't cause session repl. Being unable to do the
+ // operation is not a negative outcome.
+ System.out.println("TEST_PERSON pojo is detached");
+ }
%>
Modified: trunk/testsuite/src/resources/cluster/http/http-field-jdk5/modifySubject.jsp
===================================================================
--- trunk/testsuite/src/resources/cluster/http/http-field-jdk5/modifySubject.jsp 2007-07-11 16:56:57 UTC (rev 63978)
+++ trunk/testsuite/src/resources/cluster/http/http-field-jdk5/modifySubject.jsp 2007-07-11 16:59:21 UTC (rev 63979)
@@ -13,5 +13,15 @@
// to be replicated.
ServletContext ctx = getServletConfig().getServletContext();
Person ben = (Person)ctx.getAttribute("TEST_PERSON");
- ben.setAge(new SecureRandom().nextInt(100));
+ try
+ {
+ ben.setAge(new SecureRandom().nextInt(100));
+ }
+ catch (org.jboss.cache.pojo.PojoCacheAlreadyDetachedException e)
+ {
+ // This is OK. We're checking that an operation on a detached
+ // pojo doesn't cause session repl. Being unable to do the
+ // operation is not a negative outcome.
+ System.out.println("TEST_PERSON pojo is detached");
+ }
%>
More information about the jboss-cvs-commits
mailing list