Thanks for your reply... Maybe I should have described the scenario in more details.
I have a cluster set up in Websphere to include 2 application servers (nodes). A ejb client is running in one of the 2 servers (the same JVM where the application server runs) to submit requests to some ejb deployed in the cluster.
What I want to achieve is the load-balancing across the entire cluster so that some ejb requests will be handled locally in one server and others will be processed in another server. Because of "Process Affinity" in
Websphere, all the ejb requests submitted by that client were procssed
only in the local application server and weren't distributted to the remote server (JVM) eventhough round-robin has been set.
For my ejb application deployed in Websphere, there's only remote interface defined. And the ejb client always uses JNDI lookup to find the EJB.
The same application works fine in
JBoss which allows overriding of ejb invoker interceptor so that local ejb client can choose between local and remote interface for load-balancing. Check the link from JBoss:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClusteringFAQ Not sure if Websphere provides something similar (it is supposed to...)