protected void validateMDBTransactionAttribute(MDB mdb)
{
TransactionAttribute tx = (TransactionAttribute)mdb.resolveAnnotation(TransactionAttribute.class);
if (tx != null)
{
TransactionAttributeType type = tx.value();
if (type != TransactionAttributeType.REQUIRED && type != TransactionAttributeType.NOT_SUPPORTED)
throw new RuntimeException("MDB " + mdb.getEjbName() + " has an invalid TransactionAttribute: " + type +
". Only REQUIRED and NOT_SUPPORTED are valid");
}
}