Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

load balancing in RMI  RSS feed

 
sushant prabhu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
How can I acheive load balancing in rmi . Say i have 2 rmi server objects on 2 computers.
What i want is the client will connect to one of the server objects depending on the number of clients each of them is handling.

Regards
Sushant
 
vikki
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sushant,
You write a java business class( somethingi like business delegator) which connects to one of two RMI servers depanding upon the load on each server.. Keep some singlton variables in RMI which tracks number of instances of RMI.
Hope that helps !
vikki
 
sushant prabhu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could some one post an example or give links where i can find examples showing loadbalancing in RMI
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!