log.debug("The following method doesn't have a transaction policy assigned: " + method);
}
if (policy == null && container instanceof TransactionContainer) {
if (isBeanManagedTransaction) {
if (componentType == BeanType.STATEFUL) {
policy = new StatefulBeanManagedTxPolicy((TransactionContainer) container);
} else if (componentType == BeanType.STATELESS) {
policy = new StatelessBeanManagedTxPolicy((TransactionContainer) container);
} else if (componentType == BeanType.MESSAGE_DRIVEN) {
policy = new MessageDrivenBeanManagedTxPolicy((TransactionContainer) container);
}