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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...