[
http://jira.jboss.com/jira/browse/EJBTHREE-773?page=comments#action_12346155 ]
Bill Burke commented on EJBTHREE-773:
-------------------------------------
The way to implement this would be to have a static final long in the IsLocalInterceptor
public class IsLocalInterceptor ...
{
private static final long stamp = System.currentTimeInMillis();
private long marshalledStamp = stamp;
boolean isLocal()
{
return marshalledStamp == stamp;
}
}
This is the way we used to do it in the old EJB2 code. Problem is it required marshalling
an extra long.
isLocalInterceptor will invoke local bean when the proxy is remote
------------------------------------------------------------------
Key: EJBTHREE-773
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-773
Project: EJB 3.0
Issue Type: Bug
Reporter: William DeCoste
Assigned To: William DeCoste
IsLocalInterceptor checks to see if the container is local based on the OID (e.g.
jboss.j2ee:jar=stateless-test.jar,name=CheckedStatelessBean,service=EJB3) via
Ejb3Registry.getContainer(oid.toString()). If the bean is deployed identically to the
local and remote server and the proxy is remote, the call will still be handled locally.
Checking the Ejb3Registry doesn't work in this case.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira