Friday, March 13, 2009

Must EJBs be homogeneously deployed across a cluster? Why? (EJB)

Question :Must EJBs be homogeneously deployed across a cluster? Why? (EJB)
Answer :Yes. Beginning with WebLogic Server version 6.0, EJBs must be
homogeneously deployed across a cluster for the following reasons:
n To keep clustering EJBs simple
n To avoid cross server calls which results in more efficiency. If EJBs are
not deployed on all servers, cross server calls are much more likely.
n To ensure that every EJB is available locally
n To ensure that all classes are loaded in an undeployable way
Every server must have access to each EJB's classes so that it can be
bound into the local JNDI tree. If only a subset of the servers deploys the
bean, the other servers will have to load the bean's classes in their
respective system classpaths which makes it impossible to undeploy the
beans.

No comments: