Package org.jboss.tm

Examples of org.jboss.tm.TransactionPropagationContextFactory


    }

    public Object getTransactionPropagationContext()
          throws SystemException
    {
       TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
       return (tpcFactory == null) ? null : tpcFactory.getTransactionPropagationContext();
    }
View Full Code Here


    *         set, or if no transaction is associated with the current thread.
    */
   public Object getTransactionPropagationContext()
      throws SystemException
   {
      TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
      return (tpcFactory == null) ? null : tpcFactory.getTransactionPropagationContext();
   }
View Full Code Here

         InvokerLocator locator = (InvokerLocator) invocation.getMetaData(InvokeRemoteInterceptor.REMOTING, InvokeRemoteInterceptor.INVOKER_LOCATOR);
         if (locator == null)
         {
            //We are a local invocation. Add security and current transaction info to the invocation
            // (for remote invocations this is done by the client side interceptors)
            TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
            if (tpcFactory != null)
            {
               Object tpc = tpcFactory.getTransactionPropagationContext();
               if (tpc != null)
               {
                  invocation.getMetaData().addMetaData(ClientTxPropagationInterceptor.TRANSACTION_PROPAGATION_CONTEXT,
                                                       ClientTxPropagationInterceptor.TRANSACTION_PROPAGATION_CONTEXT, tpc);
               }
View Full Code Here

/*     */   }
/*     */
/*     */   public Object getTransactionPropagationContext()
/*     */     throws SystemException
/*     */   {
/* 107 */     TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
/* 108 */     return tpcFactory == null ? null : tpcFactory.getTransactionPropagationContext();
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public Object getTransactionPropagationContext()
/*     */     throws SystemException
/*     */   {
/* 118 */     TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
/* 119 */     return tpcFactory == null ? null : tpcFactory.getTransactionPropagationContext();
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public Object getTransactionPropagationContext()
/*     */     throws SystemException
/*     */   {
/* 123 */     TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
/* 124 */     return tpcFactory == null ? null : tpcFactory.getTransactionPropagationContext();
/*     */   }
View Full Code Here

/*  78 */     if (invocation.getMetaData("ASYNCH", "INVOKE_ASYNCH") != null)
/*     */     {
/*  81 */       InvokerLocator locator = (InvokerLocator)invocation.getMetaData("REMOTING", "INVOKER_LOCATOR");
/*  82 */       if (locator == null)
/*     */       {
/*  86 */         TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
/*  87 */         if (tpcFactory != null)
/*     */         {
/*  89 */           Object tpc = tpcFactory.getTransactionPropagationContext();
/*  90 */           if (tpc != null)
/*     */           {
/*  92 */             invocation.getMetaData().addMetaData(ClientTxPropagationInterceptor.TRANSACTION_PROPAGATION_CONTEXT, ClientTxPropagationInterceptor.TRANSACTION_PROPAGATION_CONTEXT, tpc);
/*     */           }
/*     */
View Full Code Here

/* 47 */     return "ClientTxPropagationInterceptor";
/*    */   }
/*    */
/*    */   public Object invoke(Invocation invocation) throws Throwable
/*    */   {
/* 52 */     TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
/* 53 */     if (tpcFactory != null)
/*    */     {
/* 55 */       Object tpc = tpcFactory.getTransactionPropagationContext();
/* 56 */       if (tpc != null)
/*    */       {
/* 58 */         invocation.getMetaData().addMetaData(TRANSACTION_PROPAGATION_CONTEXT, TRANSACTION_PROPAGATION_CONTEXT, tpc);
/*    */       }
/*    */     }
View Full Code Here

      trace = log.isTraceEnabled();
   }
  
   protected Object getTransactionPropagationContext()
   {
      TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
      if (trace)
      {
         log.trace("Using tpc factory " + tpcFactory);
      }     
      return (tpcFactory == null) ? null : tpcFactory.getTransactionPropagationContext();
   }
View Full Code Here

    * to find out whether the invocation is part of an on going transaction and
    * might need it's target being sticky to this tx.
    */
   protected Object getTransactionPropagationContext()
   {
      TransactionPropagationContextFactory tpcFactory = TransactionPropagationContextUtil.getTPCFactoryClientSide();
      if (trace)
      {
         log.trace("Using tpc factory " + tpcFactory);
      }
      return (tpcFactory == null) ? null : tpcFactory.getTransactionPropagationContext();
   }
View Full Code Here

TOP

Related Classes of org.jboss.tm.TransactionPropagationContextFactory

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.