RMI: Stub Not Found Exception

I

insouciant

Hi All,

I have prepared two Java Classes

1)Registry.java
2)RegistryIntf.java

RegistryIntf extends the java.rmi.remote Interface.

And Registry class Inplements the RegistryIntf and extends
PortableRemoteInterface. I am using RMI-IIOP.

I am using Visibroker Naming Service , and also using the Borland
Appcenter to manage my Components.

First I compiled my Registry.java .

Next I do java2iiop on the RegistryIntf class. It generates al the
POA's Stubs and Ties for the RegistryIntf.

Thanks in Advance


In the RegistryIntf I am using the customized API classes provided to
us to register to Naming Service. (I am not using the API's provided
by the Visibroker).

Now i prepare a JAR of all the files , and run the Registry class from
console , it gave me the exception Registry_Stub not found.

Next I took the same jar and put it into my Borlnad Appcenter
Configuration and make that as a separate component , and then started
this from Appcenter . The Component Started correctly and registers
itself to the Naming Service.

So can any one tell me why StubNotFound Exception is thrown when i run
the Registry class from the console, and the same class runs fine in
the Appcenter.

Please let me know if you have any doubts in my above explanation
 

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,991
Messages
2,570,212
Members
46,800
Latest member
Tobi1987

Latest Threads

Top