[jboss-svn-commits] JBL Code SVN: r38133 - labs/jbosstm/branches/JBOSSTS_4_16/txbridge/tests/src/test/java/org/jboss/jbossts/txbridge/tests/inbound/utility.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Jul 6 10:04:38 EDT 2012


Author: tomjenkinson
Date: 2012-07-06 10:04:36 -0400 (Fri, 06 Jul 2012)
New Revision: 38133

Modified:
   labs/jbosstm/branches/JBOSSTS_4_16/txbridge/tests/src/test/java/org/jboss/jbossts/txbridge/tests/inbound/utility/TestXAResourceRecoveryHelper.java
Log:
JBTM-1195 AS7 requires a public constructor for EJB (as opposed to spec?)

Modified: labs/jbosstm/branches/JBOSSTS_4_16/txbridge/tests/src/test/java/org/jboss/jbossts/txbridge/tests/inbound/utility/TestXAResourceRecoveryHelper.java
===================================================================
--- labs/jbosstm/branches/JBOSSTS_4_16/txbridge/tests/src/test/java/org/jboss/jbossts/txbridge/tests/inbound/utility/TestXAResourceRecoveryHelper.java	2012-07-06 11:49:47 UTC (rev 38132)
+++ labs/jbosstm/branches/JBOSSTS_4_16/txbridge/tests/src/test/java/org/jboss/jbossts/txbridge/tests/inbound/utility/TestXAResourceRecoveryHelper.java	2012-07-06 14:04:36 UTC (rev 38133)
@@ -59,7 +59,13 @@
         return instance;
     }
 
-    protected TestXAResourceRecoveryHelper() {
+    /**
+     * This is required to be public (not protected) because of 
+     * Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014227: EJB TestXAResourceRecoveryHelper of type rg.jboss.jbossts.txbridge.tests.inbound.utility.TestXAResourceRecoveryHelper must have public default constructor
+     * Clearly two instances will be created, one by the container for postConstruct/preDestroy and one by ourselves but as they both use getInstance() the code should work fine. 
+     * This is not a new way of working it would have been like that before.
+     */
+    public TestXAResourceRecoveryHelper() {
     }
 
     /**
@@ -189,4 +195,4 @@
         return logFile;
     }
 
-}
\ No newline at end of file
+}



More information about the jboss-svn-commits mailing list