Can anybody help me with RMI? I'm supposed to set up RMI without the installation of a security manager. I'm running on Windows 98.
If someone could show me the code for the client and server portions, I'd be forever greatful...
Here's the basics of my server process:
Registry myRegistry = LocateRegistry.createRegistry(Integer.parseInt(port));
RemoteUrlyBirdDBAccess dbServer = new DataAdapterImpl(dbpath);
String serverObjName = "rmi://" + host + ":" + port + "/"
+ RMI_SERVICE_NAME;
myRegistry.rebind(serverObjName, dbServer);
Here's the basics of my client...
lookupString = "rmi://" + host + ":" + port + "/"
+ RMI_SERVICE_NAME;
RemoteUrlyBirdDBAccess remote =
(RemoteUrlyBirdDBAccess) Naming.lookup(lookupString);
I start the server first, then I strat the client. The client gets a NotBoundException...I can't figure out what I'm doing wrong.
I see articles on the net, that I have to run the rmiregistry program, what is that?
HELP...