[jboss-dev] Re: Default jbosscache usage in JBoss AS 4.2/EJB3
Brian Stansberry
brian.stansberry at redhat.com
Wed Apr 18 16:35:53 EDT 2007
Alexey Loubyansky wrote:
> Brian Stansberry wrote:
>> For SFSB's, the first part of the Fqn is obtained by
>> Container.getEjbName(). AIUI, only one container per vm can have a
>> particular ejb name, so beans from different deployments are segregated.
>
> The ejb-name is unique in the ejb-jar, not the vm.
Thanks, Alexey. The way it's working now is a bug:
http://jira.jboss.com/jira/browse/EJBTHREE-946
Likely solution is to prefix the ejb name with something built up a la
EjbContainer.getDeployment().getScopedKernelName(), i.e.
[ear=xyz.ear,]jar=abc.jar,bean=StatefulBean
That should be unique, as that's the same as what creates the
container's unique OID.
The [ear=xyz.ear,]jar=abc.jar bit would serve well as a region prefix
for the entity cache.
--
Brian Stansberry
Lead, AS Clustering
JBoss, a division of Red Hat
brian.stansberry at redhat.com
More information about the jboss-development
mailing list