[Design of EJB 3.0] - Re: IsLocalInterceptor not detecting local container
by bstansberry@jboss.com
Back to this; time to get it done.
"bstansberry(a)jboss.com" wrote :
| To recognize each other the deserialized proxy and the local container need a common piece of info.
|
| Perhaps including the partitionName is sufficient.
Including the partitionName in the container OID/ObjectName won't work, as the ObjectName is created in the EJBContainer c'tor, before any the value of any @Clustered annotation or xml config is available.
So, that means the partition name needs to be independently stored in the proxy and the EJBContainer. This means adding a partitionName field to the clustered proxy classes and to EJBContainer, and adding logic to EJBContainer.start() to resolve any @Clustered annotation.
I'll add a ClusteredIsLocalInterceptor which tries to match up the proxy with the container, routing the call locally if there's a local bean from the same partition.
Any objections to this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030884#4030884
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030884
17 years, 7 months