This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes How programing p2p by Rmi? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How programing p2p by Rmi?" Watch "How programing p2p by Rmi?" New topic
Author

How programing p2p by Rmi?

kien kun
Greenhorn

Joined: Feb 15, 2012
Posts: 27
Please,tutorial for me
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
RMI isn't really the right approach for P2P - it implements a client/server architecture, and relies on pre-exchanged knowledge between both sides.

Check out Apache River for a Java P2P implementation.
kien kun
Greenhorn

Joined: Feb 15, 2012
Posts: 27
I should use what protocol is suitable with P2P instead of RMi.
If you was me,you will use what protocol is.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Depends on the circumstances, like where the participating nodes are located, security considerations, network topology etc.
Viet Dung
Greenhorn

Joined: Mar 25, 2012
Posts: 1
You can use RMI+Socket to build p2p system
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

Viet Dung wrote:You can use RMI+Socket to build p2p system


You can use nearly anything that does network communications. That does *not* mean that you should.

IMHO, RMI is never the right answer.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How programing p2p by Rmi?