TransactionManagement tmAn = (TransactionManagement)ainfo.getAnnotation();
String tmType =
TransactionManagementType.CONTAINER.equals(tmAn.value())?
EjbDescriptor.CONTAINER_TRANSACTION_TYPE :
EjbDescriptor.BEAN_TRANSACTION_TYPE;
for (EjbContext ejbContext : ejbContexts) {
EjbDescriptor ejbDesc = ejbContext.getDescriptor();
// override by xml
if (ejbDesc.getTransactionType() == null) {
ejbDesc.setTransactionType(tmType);
}
}
return getDefaultProcessedResult();