[jboss-cvs] JBossAS SVN: r105189 - projects/ejb-book/trunk/testsupport/src/main/java/org/jboss/ejb3/examples/testsupport/dbinit.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon May 24 20:23:30 EDT 2010
Author: ALRubinger
Date: 2010-05-24 20:23:30 -0400 (Mon, 24 May 2010)
New Revision: 105189
Modified:
projects/ejb-book/trunk/testsupport/src/main/java/org/jboss/ejb3/examples/testsupport/dbinit/DbInitializerBeanBase.java
Log:
[EJBBOOK-23] Catch exceptions and cause rollback in BMT
Modified: projects/ejb-book/trunk/testsupport/src/main/java/org/jboss/ejb3/examples/testsupport/dbinit/DbInitializerBeanBase.java
===================================================================
--- projects/ejb-book/trunk/testsupport/src/main/java/org/jboss/ejb3/examples/testsupport/dbinit/DbInitializerBeanBase.java 2010-05-24 22:10:05 UTC (rev 105188)
+++ projects/ejb-book/trunk/testsupport/src/main/java/org/jboss/ejb3/examples/testsupport/dbinit/DbInitializerBeanBase.java 2010-05-25 00:23:30 UTC (rev 105189)
@@ -105,6 +105,10 @@
{
this.populateDefaultData();
}
+ catch(final Throwable t)
+ {
+ txManager.setRollbackOnly();
+ }
finally
{
// Mark the end of the Tx if we started it; will trigger the EntityManager to flush
More information about the jboss-cvs-commits
mailing list