User: mnf999  
  Date: 01/12/18 21:46:26

  Modified:    src/main/org/jboss/ejb/plugins TxInterceptorCMT.java
  Log:
  init->create and Invocation
  
  Revision  Changes    Path
  1.21      +9 -9      jboss/src/main/org/jboss/ejb/plugins/TxInterceptorCMT.java
  
  Index: TxInterceptorCMT.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/TxInterceptorCMT.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- TxInterceptorCMT.java     2001/12/18 20:16:40     1.20
  +++ TxInterceptorCMT.java     2001/12/19 05:46:26     1.21
  @@ -15,7 +15,7 @@
   import javax.transaction.Transaction;
   import javax.transaction.TransactionRequiredException;
   
  -import org.jboss.ejb.MethodInvocation;
  +import org.jboss.invocation.Invocation;
   
   // TODO this needs to be replaced with the log4j logging
   
  @@ -30,7 +30,7 @@
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Sebastien Alborini</a>
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Anatoly Akkerman</a>
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Ole Husgaard</a>
  - *  @version $Revision: 1.20 $
  + *  @version $Revision: 1.21 $
    */
   public class TxInterceptorCMT
       extends AbstractTxInterceptor
  @@ -49,7 +49,7 @@
   
       // Interceptor implementation --------------------------------------
   
  -    public Object invokeHome(MethodInvocation mi)
  +    public Object invokeHome(Invocation mi)
           throws Exception
       {
           return runWithTransactions(false, mi);
  @@ -58,7 +58,7 @@
       /**
        *  This method does invocation interpositioning of tx management
        */
  -    public Object invoke(MethodInvocation mi)
  +    public Object invoke(Invocation mi)
           throws Exception
       {
           return runWithTransactions(true, mi);
  @@ -98,19 +98,19 @@
        *
        *  This is where the meat is.  We define what to do with the Tx based
        *  on the declaration.
  -     *  The MethodInvocation is always the final authority on what the Tx
  +     *  The Invocation is always the final authority on what the Tx
        *  looks like leaving this interceptor.  In other words, interceptors
        *  down the chain should not rely on the thread association with Tx but
  -     *  on the Tx present in the MethodInvocation.
  +     *  on the Tx present in the Invocation.
        *
        *  @param remoteInvocation If <code>true</code> this is an invocation
        *                          of a method in the remote interface, otherwise
        *                          it is an invocation of a method in the home
        *                          interface.
  -     *  @param mi The <code>MethodInvocation</code> of this call.
  +     *  @param mi The <code>Invocation</code> of this call.
        */
       private Object runWithTransactions(boolean remoteInvocation,
  -                                       MethodInvocation mi)
  +                                       Invocation mi)
           throws Exception
       {
           // Old transaction is the transaction that comes with the MI
  @@ -173,7 +173,7 @@
                               //DEBUG log.debug("TxInterceptorCMT:after commit of " + 
newTransaction);
                           }
   
  -                        // reassociate the oldTransaction with the methodInvocation 
(even null)
  +                        // reassociate the oldTransaction with the Invocation (even 
null)
                           mi.setTransaction(oldTransaction);
                       }
                       // Always drop thread association even if committing or
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to