[jboss-dev-forums] [Design of EJB 3.0] - Re: IsLocalInterceptor not detecting local container
bstansberry@jboss.com
do-not-reply at jboss.com
Tue Mar 13 15:25:31 EDT 2007
Agreed. So, IMO FirstAvailable.electedTarget shouldn't be transient.
That also implies IsLocalInterceptor shouldn't try to optimize the call locally (at least not for an SFSB...)
Which leads to this. Assume we fix FirstAvailable so the remote target survives:
1) IsLocalInterceptor precedes ClusterChooserInterceptor
2) IsLocalInterceptor lets the call go through as remote
3) Call fails. Likely. The parent bean failed over, pretty likely child will as well.
4) ClusterChooserInterceptor picks a new target -- the local machine.
5) Call goes through and we get the EJBTHREE-881 failure.
Perhaps the solution here lies more in the direction of my hacky Option B, way back when. Find a way to signal to TxPropagationInterceptor that a call that was thought to be remote has ended up going locally. IsLocalInterceptor adds some transient invocation metadata or something.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027656#4027656
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027656
More information about the jboss-dev-forums
mailing list