4 Replies Latest reply on Aug 20, 2009 1:46 PM by jaikiran

    EJB 3.0 load balancing not working in a Jboss AS 5.1 cluster

      Hi,

      I am using Jboss AS 5.1 GA. I have built a clustered deployment of my EJB 3.0 Stateless Session beans. I have two nodes node 1 and node 2. Beans are marked as clustered in jboss.xml with load balance policy 'RoundRobin'.

      My problem, the beans are no balancing the load whenever a call to bean is made from server VM. For instance, POJO's from node 1 make a bean call and they are served by beans in node 1 only. Even though there are free beans available in node 2, they are never routed to node 2. Can you please tell me why this is happening? Do I need to write my own load balancing interceptor or something?

      thanks in advance,
      regards,
      Kedar