Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMI server and client in the same app

843793Feb 4 2002 — edited Feb 12 2002
I'm writing a Java distributed application that should work both as a client and as a server. I mean, suppose a lot of these apps running and connecting among themselves thru RMI; sometimes they act as clients, sometimes as servers. At first I wrote two different classes to be run on the same host, one representing the client side and the other one representing the server side of the same app. It was working fine. Now I'm trying to put the two ends altogether, and I get a StubNotFoundException trying to load the server's stub at runtime. Can anybody tell me what's wrong with this?

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 12 2002
Added on Feb 4 2002
5 comments
134 views