Examples of TransactionAttributeType


Examples of javax.ejb.TransactionAttributeType

   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");
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.packagemanager.annotation.TransactionAttributeType

      // nothing special to do, just invoke
      if (txAnnotation == null)
      {
         return method.invoke(this.packageManager, args);
      }
      TransactionAttributeType txType = txAnnotation.value();
      switch (txType)
      {
         case REQUIRED :
            return this.invokeInCurrentTx(proxy, method, args);
         case REQUIRES_NEW :
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.