rmi.Naming and registry

S

staff

Hello,

I am having a following problem. When I create rmi registry in my
application by

LocateRegistry.createRegistry(Registry.REGISTRY_PORT);

and I register objects in it everything is ok. I am registering by

Naming.rebind("RemoteName", remoteInterfaceImplInstance);

Problems are coming up when registry is already created by other
application. Then Naming.rebind(...) throws exception ClassNotFound ....
RemoteInterfaceImpl_Stub.

Looks like registry has no access to this class, how to make such access for
already created registry?

Regards
Pawe³ Stawicki
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top