User: slaboure
  Date: 01/11/23 06:36:22

  Modified:    src/main/org/jboss/ha/framework/server HARMIServerImpl.java
  Log:
  New constructor with RMI specific parameters
  
  Revision  Changes    Path
  1.7       +11 -3     
jbossmx/src/main/org/jboss/ha/framework/server/HARMIServerImpl.java
  
  Index: HARMIServerImpl.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbossmx/src/main/org/jboss/ha/framework/server/HARMIServerImpl.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HARMIServerImpl.java      2001/11/12 05:32:00     1.6
  +++ HARMIServerImpl.java      2001/11/23 14:36:22     1.7
  @@ -17,6 +17,8 @@
   import java.rmi.server.RemoteStub;
   import java.rmi.server.RemoteServer;
   import java.rmi.server.UnicastRemoteObject;
  +import java.rmi.server.RMIClientSocketFactory;
  +import java.rmi.server.RMIServerSocketFactory;
   import java.io.Serializable;
   import java.io.Externalizable;
   import java.io.ObjectInput;
  @@ -44,7 +46,7 @@
    *
    *   @author [EMAIL PROTECTED]
    *   @author [EMAIL PROTECTED]
  - *   @version $Revision: 1.6 $
  + *   @version $Revision: 1.7 $
    *
    * <p><b>Revisions:</b><br>
    * <p><b>2001/11/09: Sacha Labourey</b>
  @@ -69,7 +71,8 @@
      protected Class intf;
      protected long clusterViewId = -1;
      
  -   public HARMIServerImpl (HAPartition partition, String replicantName, Class intf, 
Object handler) throws Exception
  +   public HARMIServerImpl (HAPartition partition, String replicantName, Class intf, 
Object handler,
  +                           int port, RMIClientSocketFactory csf, 
RMIServerSocketFactory ssf) throws Exception
      {
         this.replicantName = replicantName;      
         this.handler = handler;
  @@ -80,12 +83,17 @@
         for (int i = 0; i < methods.length; i++)
            invokerMap.put (new Long (RemoteMethodInvocation.calculateHash 
(methods[i])), methods[i]);
         
  -      this.rmistub = UnicastRemoteObject.exportObject (this);
  +      this.rmistub = (RemoteStub)UnicastRemoteObject.exportObject (this, port, csf, 
ssf);// casting is necessary because interface has changed in JDK>=1.2
   
         updateHAPartition (partition);
         
         HARMIServer.rmiServers.put (key, this);
         
  +   }
  +
  +   public HARMIServerImpl (HAPartition partition, String replicantName, Class intf, 
Object handler) throws Exception
  +   {
  +      this (partition, replicantName, intf, handler, 0, null, null);
      }
      
      public void updateHAPartition (HAPartition partition) throws Exception
  
  
  

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

Reply via email to