Nelson Minar wrote:
>
> >I have been trying to get RMI to work for some time now.
>
> RMI works fine in Java/Linux - I rely on it heavily with my code, and
> it works as well as it could. (There are some interesting issues
> relating to socket limits and 50+ simultaneous calls, but that's Linux
> and RMI's fault, not the Linux port).
>
> >I can run the server class, and it binds with the registry just fine.
> >When I try to connect with the client, it tells me that the _Stub
> >class cannot be found.
>
> This is a basic RMI problem - you should read the RMI FAQ on Sun's web
> site. Classpaths in RMI are a bit subtle.
>
> [EMAIL PROTECTED]
> . . . . . . . . http://www.media.mit.edu/~nelson/
With the help of some suggestions given, I have been able to get Sun's
example to work, but only when I run the client on the same machine as
the server. When I run the client from a different machine, I get the
error
java.netConnectException: Connection refused
java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
The stack trace says that the call is being made from HelloImpl_Stub, so
it appears that I have a problem with the stub talking to the server.
Any takers on this one?
Thanks,
Wendell Porter
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]