Package org.jboss.tm

Examples of org.jboss.tm.TransactionPropagationContextImporter


           {
              MarshalledInvocation mi = (MarshalledInvocation) param;
              Object txCxt = mi.getTransactionPropagationContext();
              if(txCxt != null)
              {
                 TransactionPropagationContextImporter tpcImporter = TransactionPropagationContextUtil.getTPCImporter();
                 mi.setTransaction(tpcImporter.importTransactionPropagationContext(txCxt));
              }
           }
        }
        return obj;
    }
View Full Code Here


   @Override
   public Object invoke(Invocation inv) throws Exception
   {
      MarshalledInvocation mi = (MarshalledInvocation)inv;     
      Object tpc = mi.getTransactionPropagationContext();
      TransactionPropagationContextImporter tpcImporter = TransactionPropagationContextUtil.getTPCImporter();
      Transaction tx = tpcImporter.importTransactionPropagationContext(tpc);
      log.debug("Tpc " + tpc + " is associated with tx " + tx);
     
      /* If a tpc is retrieved on the server side but matches no transaction
       * there, then it means that invocation was not sticky. An invocation
       * containing a tpc must, under transaction stikcy rules, hit the server
View Full Code Here

         {
            MarshalledInvocation mi = (MarshalledInvocation) param;
            Object txCxt = mi.getTransactionPropagationContext();
            if(txCxt != null)
            {
               TransactionPropagationContextImporter tpcImporter = TransactionPropagationContextUtil.getTPCImporter();
               mi.setTransaction(tpcImporter.importTransactionPropagationContext(txCxt));
            }
         }
      }

      return ret;
View Full Code Here

           {
              MarshalledInvocation mi = (MarshalledInvocation) param;
              Object txCxt = mi.getTransactionPropagationContext();
              if(txCxt != null)
              {
                 TransactionPropagationContextImporter tpcImporter = TransactionPropagationContextUtil.getTPCImporter();
                 mi.setTransaction(tpcImporter.importTransactionPropagationContext(txCxt));
              }
           }
        }
        return obj;
    }
View Full Code Here

/*    */       {
/* 60 */         MarshalledInvocation mi = (MarshalledInvocation)param;
/* 61 */         Object txCxt = mi.getTransactionPropagationContext();
/* 62 */         if (txCxt != null)
/*    */         {
/* 64 */           TransactionPropagationContextImporter tpcImporter = TransactionPropagationContextUtil.getTPCImporter();
/* 65 */           mi.setTransaction(tpcImporter.importTransactionPropagationContext(txCxt));
/*    */         }
/*    */       }
/*    */     }
/*    */
/* 70 */     return ret;
View Full Code Here

/*    */       {
/* 81 */         MarshalledInvocation mi = (MarshalledInvocation)param;
/* 82 */         Object txCxt = mi.getTransactionPropagationContext();
/* 83 */         if (txCxt != null)
/*    */         {
/* 85 */           TransactionPropagationContextImporter tpcImporter = TransactionPropagationContextUtil.getTPCImporter();
/* 86 */           mi.setTransaction(tpcImporter.importTransactionPropagationContext(txCxt));
/*    */         }
/*    */       }
/*    */     }
/* 90 */     return obj;
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.tm.TransactionPropagationContextImporter

Copyright © 2018 www.massapicom. 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.