if (method.equals(this.ejbTimeout) && policy.getPolicyType() == TransactionPolicy.Type.RequiresNew) {
// do nothing. This is allowed as the timer callback method for a message driven bean
// can also have a transaction policy of RequiresNew Sec 5.4.12 of Ejb 3.0 Core Spec
} else {
throw new OpenEJBException("The transaction attribute " + policy.policyToString() + "is not supported for the method "
+ method.getName() + " of the Message Driven Bean " + beanClass.getName());
}
}
}
methodTransactionAttributes.put(method, byteValue);