I have a business method of my session EJB:
public class ManagerBean implements SessionBean { public GatewayReference registerGateway() throws RemoteException; }
public interface GatewayReference extends java.rmi.Remote { public void start() throws RemoteException; }
RMI is not magic. You have to export the object.
It sounds like what you really want is a stateful session bean?
Regards,
Adrian