Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How programing p2p by Rmi?

 
kien kun
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please,tutorial for me
 
Tim Moores
Bartender
Posts: 2687
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I should use what protocol is suitable with P2P instead of RMi.
If you was me,you will use what protocol is.
 
Tim Moores
Bartender
Posts: 2687
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on the circumstances, like where the participating nodes are located, security considerations, network topology etc.
 
Viet Dung
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use RMI+Socket to build p2p system
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic