Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mutithreaded rmi server

 
mateen dar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi.. i am want to start working on my assignment. the specification says that the server must be mutithreaded. i want to use rmi. i carnt understand how to implement mutithreading in rmi server. i know the complete basics of rmi. just wanna know how to make it mutithreaded. thanks
 
Vincent Hernandez
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should take a look at this from the java specification:

http://java.sun.com/j2se/1.4.2/docs/guide/rmi/spec/rmi-arch3.html


3.2 Thread Usage in Remote Method Invocations

A method dispatched by the RMI runtime to a remote object implementation may or may not execute in a separate thread. The RMI runtime makes no guarantees with respect to mapping remote object invocations to threads. Since remote method invocation on the same remote object may execute concurrently, a remote object implementation needs to make sure its implementation is thread-safe.


You will need to write thread-safe code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic