User: starksm
Date: 01/06/26 17:22:47
Modified: src/main/org/jboss/ejb Tag: Branch_2_4 ContainerFactory.java
Log:
Fix test of the container-interceptor transaction attribute against
the default value of Both
Revision Changes Path
No revision
No revision
1.77.2.1 +5 -2 jboss/src/main/org/jboss/ejb/ContainerFactory.java
Index: ContainerFactory.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/ContainerFactory.java,v
retrieving revision 1.77
retrieving revision 1.77.2.1
diff -u -r1.77 -r1.77.2.1
--- ContainerFactory.java 2001/06/16 05:53:38 1.77
+++ ContainerFactory.java 2001/06/27 00:22:47 1.77.2.1
@@ -81,7 +81,7 @@
* @author Peter Antman ([EMAIL PROTECTED])
* @author Scott Stark([EMAIL PROTECTED])
*
-* @version $Revision: 1.77 $
+* @version $Revision: 1.77.2.1 $
*/
public class ContainerFactory
extends org.jboss.util.ServiceMBeanSupport
@@ -815,7 +815,10 @@
of transType
*/
String transAttr = ielement.getAttribute("transaction");
- if( transAttr.length() == 0 ||
transAttr.equalsIgnoreCase(transTypeString) )
+ if( transAttr == null || transAttr.length() == 0 )
+ transAttr = ANY_VALUE;
+ if( transAttr.equalsIgnoreCase(ANY_VALUE) ||
transAttr.equalsIgnoreCase(transTypeString) )
+
{ // The transaction type matches the container bean trans type,
check the metricsEnabled
String metricsAttr = ielement.getAttribute("metricsEnabled");
boolean metricsInterceptor = metricsAttr.equalsIgnoreCase("true");
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development