diff --git a/ejb3/src/main/java/org/jboss/as/ejb3/component/EJBComponentCreateService.java b/ejb3/src/main/java/org/jboss/as/ejb3/component/EJBComponentCreateService.java index daf21d7..d2ebdba 100644 --- a/ejb3/src/main/java/org/jboss/as/ejb3/component/EJBComponentCreateService.java +++ b/ejb3/src/main/java/org/jboss/as/ejb3/component/EJBComponentCreateService.java @@ -30,6 +30,7 @@ import java.util.List; import java.util.Map; + import javax.ejb.TimerService; import javax.ejb.TransactionAttributeType; import javax.ejb.TransactionManagementType; @@ -231,7 +232,7 @@ String className = method.getDeclaringClass().getName(); String methodName = method.getName(); TransactionAttributeType txAttr = ejbComponentDescription.getTransactionAttributes().getAttribute(methodIntf, className, methodName, toString(method.getParameterTypes())); - if (txAttr != TransactionAttributeType.REQUIRED) { + if (txAttr != null) { txAttrs.put(new MethodTransactionAttributeKey(methodIntf, MethodIdentifier.getIdentifierForMethod(method)), txAttr); } Integer txTimeout = ejbComponentDescription.getTransactionTimeouts().getAttribute(methodIntf, className, methodName, toString(method.getParameterTypes())); @@ -243,7 +244,7 @@ private static String[] toString(Class[] a) { final String[] result = new String[a.length]; for (int i = 0; i < result.length; i++) { - result[i] = a[i].getName(); + result[i] = a[i].getCanonicalName(); } return result; } diff --git a/ejb3/src/main/java/org/jboss/as/ejb3/component/EJBComponentDescription.java b/ejb3/src/main/java/org/jboss/as/ejb3/component/EJBComponentDescription.java index f32cb0b..d257523 100644 --- a/ejb3/src/main/java/org/jboss/as/ejb3/component/EJBComponentDescription.java +++ b/ejb3/src/main/java/org/jboss/as/ejb3/component/EJBComponentDescription.java @@ -273,7 +273,7 @@ this.addCurrentInvocationContextFactory(); // setup a dependency on EJB remote tx repository service, if this EJB exposes at least one remote view this.addRemoteTransactionsRepositoryDependency(); - this.transactionAttributes = new ApplicableMethodInformation(componentName, TransactionAttributeType.REQUIRED); + this.transactionAttributes = new ApplicableMethodInformation(componentName, null); this.transactionTimeouts = new ApplicableMethodInformation(componentName, null); this.descriptorMethodPermissions = new ApplicableMethodInformation(componentName, null); this.annotationMethodPermissions = new ApplicableMethodInformation(componentName, null);