[jboss-dev-forums] [Design of EJB 3.0] - Re: IsLocalInterceptor not detecting local container

bstansberry@jboss.com do-not-reply at jboss.com
Thu Mar 22 19:14:05 EDT 2007


Back to this; time to get it done.

"bstansberry at 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



More information about the jboss-dev-forums mailing list