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!

Peer-to-Peer using RMI (JXTA)

843793Nov 27 2001 — edited Nov 29 2001
Hello everybody

I already postet a topic regarding this some days ago and I thought about some P2P solutions using RMI. I also checked out JXTA but this technology is not really available yet, is it?

I plan to realise a P2P system which acts as a brokered system -> "Brokered systems where peers connect to a server in order to discover other
peers, but then manage the communication themselves." (definition on JXTA page)

I'm not really sure if this works. For example I have 3 computers (A, B and C). System A is the server running a Java application and the rmiregistry, systems B and C are clients (or peers). Firtly peer B connects to the server (system A) and sends a reference of itself to the server (a stub object). Afterwards peer C connects to the server and gets the stub object of peer B so peer C and B can communicate with each other without sending any information to the server A.

I already programed a messenger system which uses RMI and I used "dual-RMI" (I don't know the official word for this), so the server got a stub of the client and the client got a stub of the server... that was no problem. But I wonder if it is possible to pass a stub object from one system to another and then use this stub to communicate directly with the corresponing peer.

I think there should be a possibility to shut down system A after B and C got stubs from each other. Finally I want to implement a multiplayer chess which only uses a server in order to discover other
peers, but then manage the communication themselves.

Does anyone have experience with this or does anybody know if this works?

Thank you for your advice/hints.

Best regards
Adrian Rabenseifner
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2001
Added on Nov 27 2001
1 comment
270 views