File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How programing p2p by Rmi?

 
kien kun
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please,tutorial for me
 
Tim Moores
Bartender
Pie
Posts: 2496
10
  • 0
  • 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
  • 0
  • 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
Pie
Posts: 2496
10
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use RMI+Socket to build p2p system
 
Pat Farrell
Rancher
Posts: 4660
5
Linux Mac OS X VI Editor
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic