User: mnf999  
  Date: 01/12/18 21:36:53

  Modified:    src/main/org/jboss/ejb/plugins AbstractTxInterceptor.java
                        AbstractTxInterceptorBMT.java
  Log:
  init()->create() use of Invocation
  
  Revision  Changes    Path
  1.8       +5 -5      jboss/src/main/org/jboss/ejb/plugins/AbstractTxInterceptor.java
  
  Index: AbstractTxInterceptor.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/AbstractTxInterceptor.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AbstractTxInterceptor.java        2001/11/26 03:12:25     1.7
  +++ AbstractTxInterceptor.java        2001/12/19 05:36:53     1.8
  @@ -18,14 +18,14 @@
   import javax.ejb.NoSuchEntityException;
   
   import org.jboss.ejb.Container;
  -import org.jboss.ejb.MethodInvocation;
  +import org.jboss.invocation.Invocation;
   import org.jboss.logging.Logger;
   
   /**
    *  A common superclass for the transaction interceptors.
    *
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Ole Husgaard</a>
  - *  @version $Revision: 1.7 $
  + *  @version $Revision: 1.8 $
    */
   abstract class AbstractTxInterceptor
      extends AbstractInterceptor
  @@ -62,7 +62,7 @@
   
       // Interceptor implementation --------------------------------------
   
  -    public void init()
  +    public void create()
           throws Exception
       {
           tm = (TransactionManager) getContainer().getTransactionManager();
  @@ -83,11 +83,11 @@
        *                          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.
        *  @param newTx If <code>true</code> the transaction has just been
        *               started in this interceptor.
        */
  -    protected Object invokeNext(boolean remoteInvocation, MethodInvocation mi,
  +    protected Object invokeNext(boolean remoteInvocation, Invocation mi,
                                   boolean newTx)
           throws Exception
       {
  
  
  
  1.6       +7 -7      
jboss/src/main/org/jboss/ejb/plugins/AbstractTxInterceptorBMT.java
  
  Index: AbstractTxInterceptorBMT.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/AbstractTxInterceptorBMT.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbstractTxInterceptorBMT.java     2001/11/24 20:43:22     1.5
  +++ AbstractTxInterceptorBMT.java     2001/12/19 05:36:53     1.6
  @@ -22,14 +22,14 @@
   import javax.naming.spi.ObjectFactory;
   
   import org.jboss.ejb.EnterpriseContext;
  -import org.jboss.ejb.MethodInvocation;
  +import org.jboss.invocation.Invocation;
   
   
   /**
    *  A common superclass for the BMT transaction interceptors.
    *
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Ole Husgaard</a>
  - *  @version $Revision: 1.5 $
  + *  @version $Revision: 1.6 $
    */
   abstract class AbstractTxInterceptorBMT
      extends AbstractTxInterceptor
  @@ -60,11 +60,11 @@
   
      // Interceptor implementation --------------------------------------
   
  -   public void init()
  +   public void create()
         throws Exception
      {
         // Do initialization in superclass.
  -      super.init();
  +      super.create();
   
         // bind java:comp/UserTransaction
         RefAddr refAddr = new RefAddr("userTransaction") {
  @@ -105,9 +105,9 @@
       *                          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.
       */
  -   protected Object invokeNext(boolean remoteInvocation, MethodInvocation mi)
  +   protected Object invokeNext(boolean remoteInvocation, Invocation mi)
         throws Exception
      {
         // Save the transaction that comes with the MI
  @@ -122,7 +122,7 @@
         Transaction threadTx = tm.suspend();
   
         try {
  -         EnterpriseContext ctx = mi.getEnterpriseContext();
  +         EnterpriseContext ctx = ((EnterpriseContext) mi.getEnterpriseContext());
   
            // Set the threadlocal to the userTransaction of the instance
            userTransaction.set(ctx.getEJBContext().getUserTransaction());
  
  
  

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

Reply via email to