1 Reply Latest reply on Mar 9, 2004 9:49 AM by Adrian Brock

    using RMI in EJBs

    yashi Newbie

      I have a business method of my session EJB:

      public class ManagerBean implements SessionBean {
       public GatewayReference registerGateway() throws RemoteException;
      }
      



      and this is the definition of the return type:


      public interface GatewayReference extends java.rmi.Remote {
       public void start() throws RemoteException;
      }



      A client looks up my EJB home interface, creates the EJB and calls the registerGateway method.

      Then, on the return object, start is called. I expect, because this class is java.rmi.Remote, the call to be remote but is not - it is invoked locally in the client VM.

      Why is that?