This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have a WAS ND 6.1 cluster containing two nodes. I deploy a stateless session bean in the cluster. I want the two nodes to do things at the same time. I use below way to lookup the EJB on one node:
You can see that I am using node specific JNDI name, NOT clustered JNDI name like "cell/clusters/MyCluster/oneEJB" to lookup the EJB. I hope using node specific JNDI can lookup the EJB on the given node. But it is not...the lookup is load-banlanced. Sometimes I will get EJB on node 1, sometimes I will get the one on node 2.
Is there any way to let me lookup the EJB on a given node in a cluster? I want both the two nodes to do thing through the EJB at the same time.
And my EJB client is out of cluster now. If I put the client in one of the nodes, I guess all the EJB call will be dispatched to the local EJB in the node, right? I know it is for perfomance consideration. But, is there any way to disable it?