Forums Register Login

look up error

+Pie Number of slices to send: Send
i am in the final stage of submiting assignment
i wanted to create a registry and it worked but when trying to connect to a server now i am getting an error NotBoundException
here is what i do on a server
Registry r = LocateRegistry.createRegistry(new Integer(args[1]).intValue());
r.rebind("rmi://" + args[0] + ":" + new Integer(args[1]).intValue() + "//FBN",obj);
and code that should get remote reference is
obj = (DataImpl)Naming.lookup("rmi://"+address+":" + port + "//FBN");
+Pie Number of slices to send: Send
r.rebind("rmi://" + args[0] + ":" + new Integer(args[1]).intValue() + "//FBN",obj);
This should be written as
r.rebind("FBN",obj);
+Pie Number of slices to send: Send
no i think i had it right before using LocateRegistry class and starting rmiregistry using dos it all worked fine.
+Pie Number of slices to send: Send
i got it working now here is what i did
Registry registry = LocateRegistry.getRegistry(port);
obj = (DataImpl)registry.lookup("rmi://" + address + ":" + port + "//FBN");
My pie came with a little toothpic holding up this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 712 times.
Similar Threads
error: "java.rmi.NotBoundException: Server" ???
RMI client server don't work on ipv6 machines
how to start server in command line...
can't solve the problem on RMI client code
generics 1.4
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 07:44:55.