This content has been marked as final. Show 1 reply
By default the Load Balancing algorithm will be "round-robin" means the calls to the Bean will be routed to different cluster members in round robin fashion. But if you want to control it then you can choose "weight-based" or "random-affinity" as well..
If you want to control the AFFINITY then which creating the initial Context please set the property ENABLE_SERVER_AFFINITY to false/true.
If the initial context is requested from a the cluster, by default, context requests are load balanced on a round-robin basis among the clustered server instances. To reuse an existing connection between a particular JVM and the cluster, set ENABLE_SERVER_AFFINITY to true in the hashtable of weblogic.jndi.WLContext properties you specify when obtaining context. (If a connection is not available, a new connection is created.) ENABLE_SERVER_AFFINITY is only supported when the context is requested from the cluster address.
http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)