Meaningless Drivel is fun!*
The moose likes Websphere and the fly likes Is there any way to not load balance EJB call in WAS cluster? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Is there any way to not load balance EJB call in WAS cluster?" Watch "Is there any way to not load balance EJB call in WAS cluster?" New topic
Author

Is there any way to not load balance EJB call in WAS cluster?

Zeke Yang
Greenhorn

Joined: Feb 13, 2009
Posts: 1
Hi,
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?

Thank you!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is there any way to not load balance EJB call in WAS cluster?
 
Similar Threads
Fooling Websphere's smart client stubs : invoking ejb method on all clustermembers
JNDI Lookup can't find MQ QCF. Why?!?
Test 252: Mock exam
How to acces specific resource in a server in clustering
Qualified EJB Name in Cluster