0 Replies Latest reply on May 13, 2010 3:02 PM by dandare100

    Restrict all ejb proxies to same node on cluster

    dandare100

      Hello

       

      I have a service locater that looks up 7 stateless session beans from a initial context that is created against a cluster .

      The proxies are cached to prevent subsequent lookups by the client.

       

      the initial context url

      java.naming.provider.url=10.42.7.128:1100,10.42.7.146:1100

       

      I notice each of the 7 EJB proxies that are created, connect to a random node in the cluster. eg 3 to 10.42.7.128 and 4 to 10.42.7.146

       

      My question is :

      Is there a way to ensure that all 7 proxies connect to the same node in the cluster ?

       

      The reason for this is that it is quite a mission to consolidate the backend logs for an entire interaction of the frontend against the cluster.

       

      ie : The interaction is interweaved across the 2 boxes and to tie up / follow the log entries can become complex

       

      Using a loadBalancePolicy of FirstAvailableIdenticalAllProxies looked like it would solve my problem but it did not. From what I can determine it keeps to the same node for proxy families. eg If I look up the same EJB twice, it will go to the same node.

       

      JBOSS AS Version 5.1.0GA