2 Replies Latest reply on Dec 27, 2006 3:27 PM by robocop

    Fail over working, but load balancing not happening in JBoss

    robocop

      We are running JBoss 4.0.2 (JBoss_4_0_2 date=200505022023) in a cluster mode and everything works fine like fail-over, SSL, HTTPS invoker etc., but for load balancing for Stateless EJB.

      It loads one server till that server goes down and then loads the other server. Would appreciate any help on this :)

      Here's what we have in jboss.xml,

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">
      
      <jboss>
       <enterprise-beans>
       <session>
       <ejb-name>xxxx</ejb-name>
       <jndi-name>ejb/yyyyy</jndi-name>
       <clustered>true</clustered>
       <cluster-config>
       <home-load-balance-policy>org.jboss.ha.framework.interfaces.RoundRobin</home-load-balance-policy>
       <bean-load-balance-policy>org.jboss.ha.framework.interfaces.RoundRobin</bean-load-balance-policy>
       </cluster-config>
       </session>
      .............


      On the client side, I tried caching remote interface, caching just the Home interface, without caching etc., but load-balancing doesn't seem to happen

      Thanks in advance for any help