User: patriot1burke
  Date: 01/12/31 12:49:45

  Modified:    src/main/org/jboss/invocation/jrmp/server JRMPInvoker.java
  Log:
  added createDelegateInvoker to abstract out the creating of the proxy
  
  Revision  Changes    Path
  1.2       +8 -3      jboss/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java
  
  Index: JRMPInvoker.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JRMPInvoker.java  2001/12/19 07:11:15     1.1
  +++ JRMPInvoker.java  2001/12/31 20:49:45     1.2
  @@ -53,7 +53,7 @@
   *
   *  @author <a href="mailto:[EMAIL PROTECTED]>Marc Fleury</a>
   *
  -*  @version $Revision: 1.1 $
  +*  @version $Revision: 1.2 $
   */
   
   public class JRMPInvoker
  @@ -63,9 +63,9 @@
   {
      // Constants -----------------------------------------------------
      protected final static int ANONYMOUS_PORT = 0;
  -   protected static Logger log = Logger.getLogger(JRMPInvoker.class);
      
      // Attributes ----------------------------------------------------
  +   protected Logger log = Logger.getLogger(JRMPInvoker.class);
      
      /** The port the container will be exported on */
      protected int rmiPort = ANONYMOUS_PORT;
  @@ -174,7 +174,7 @@
         
GenericProxy.setTransactionManager((TransactionManager)ctx.lookup("java:/TransactionManager"));
         JRMPInvokerProxy.setTPCFactory(tpcFactory);
         
  -      JRMPInvokerProxy delegateInvoker = new JRMPInvokerProxy(this);
  +      Invoker delegateInvoker = createDelegateInvoker();
         
         // Export references to the bean
         Registry.bind(serviceName, delegateInvoker);   
  @@ -313,6 +313,11 @@
      // Package protected ---------------------------------------------
      
      // Protected -----------------------------------------------------
  +
  +   protected Invoker createDelegateInvoker()
  +   {
  +      return new JRMPInvokerProxy(this);
  +   }
      
      protected void exportCI() throws Exception
      {
  
  
  

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

Reply via email to