0 Replies Latest reply on Mar 4, 2004 8:28 AM by peter

    Load balance algorithm Question

    peter Apprentice

      Hello,

      I have 1000 concurrent RMI based client users to access
      stateless session bean. To achieve the high availability, the stateless bean is clustered by
      modifying jboss.xml to include following elements:

      < clustered >True< clustered >
      < cluster-config >
      < partition-name >DefaultPartion< /partion-name >
      < home-load-balance >
      org.jboss.ha.framework.interface.RoundRobin
      < /home-load-balance >
      < bean-load-balance >
      org.jboss.ha.framework.interface.FirstAvailable
      < /bean-load-balance >
      < /cluster-config >

      Through this configuration, I expect that there is a specific server to serve all method invocations from a client.
      In other word, i don't want to distribute the method invocations from the same client to different servers. So, in
      the client implementation, i have the following codes:

      int i=j=0;
      For (i=0;i<5;i++){
      home = createHome();
      for(j=0;j<200;j++){
      remote = home.create();
      Thread t = new ClientThread(remote);
      t.start();
      }
      }

      Does this will solve my problem? Any comments?

      Thanks

      yang