Chapter 8 Creating J2EE Applications for BEA WebLogic


Clustered EJBHome Objects

In a WebLogic Server cluster, a cluster-aware "stub" can replace the server-side representation of the Home object. The cluster-aware home stub has knowledge of EJB Home objects on all WebLogic Servers in the cluster. The clustered home stub provides load balancing by distributing EJB lookup requests to available servers. It can also provide failover support for lookup requests, because it routes those requests to available servers when other servers have failed.

All EJB types — stateless session, stateful session, and entity EJBs — can have cluster-aware home stubs. Whether or not a cluster-aware home is created is determined by the home-is-clusterable deployment property in weblogic-ejb-jar.xml. If this property is set to "true" (the default), ejbc calls the rmic compiler with the appropriate options to generate a cluster-aware home stub for the EJB.


 


Copyright (C) 2005. Sybase Inc. All rights reserved.