-
1. Re: Local vs Remote EJB interfaces in a cluster
wolfc Aug 22, 2011 7:19 AM (in response to david_b)Clustering of local views makes no sense. Apart from the fact that it would be impossible to call by reference.
Even calling clustered remote views on another makes no sense. Let me elaborate on that.
Lets suppose we have a cluster which consists of two nodes: A and B, on which we deploy GreeterBean which calls PersonBean.
Suppose we would do a 'failover' over call from GreeterBean on node A to PersonBean on node B. During that call either node dies. Effectively the whole request is no bogus.
Alternatively we could configure the clustering to do load balancing and we do a 'load balance' call from GreeterBean on node A to PersonBean on node B. This would add overhead on the cluster itself and increase load on node B. Subsequently a call will go from node B to node A. Again more overhead. Soon you'll find your cluster only doing load-balancing overhead and nothing more.
Thus whenever a node receives a call from the outside world it should do its utmost to process it by itself.