[jboss-dev-forums] [Design of Clustering on JBoss (Clusters/JBoss)] - FirstAvailable load balance policy loses target in serializa
bstansberry@jboss.com
do-not-reply at jboss.com
Tue Mar 13 13:07:35 EDT 2007
The electedTarget field in FirstAvailable is transient. So, if the policy is serialized the target will be lost and the next request will choose a different target.
I'm wondering what the reason for making this transient was.
Having it transient leads to problems if the bean proxy is serialized, since following deserialization another target will be chosen. For example, when a clustered EJB3 SFSB has another bean injected, when the parent context is replicated, the child bean proxy is replicated as well. If there is a failover on a call to the parent, the child proxy is no longer sticky, which can lead to odd behavior (see http://www.jboss.com/index.html?module=bb&op=viewtopic&t=101220).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027619#4027619
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027619
More information about the jboss-dev-forums
mailing list