geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <>
Subject Re: [jira] Created: (GERONIMO-340) Add support for ejb-ref resolution by matching on the ejb interfaces
Date Fri, 01 Oct 2004 03:03:51 GMT
On Sep 30, 2004, at 6:24 PM, karan singh malhi wrote:

>  Assuming we only
>> find one matching ejb, we will use that one for the ref.  If we find
>> two or more matches, you would get an AmbiguousEJBRefException, and if
>> we find none you would get a DeploymentException.
> if the ejb-ref maps to the home and remote interface, what would be a 
> scenario where we could have amibuity?
> Right now , i cant think of a situation where we could have two 
> different matches for an ejb-ref. Could you
> please clarify that?

EJB allows for several EJBs to have the same home an remote interface.  
Actually you can have several EJBs with the same interfaces and 
implementations.  I have seen this used in applications where the same 
EJB is deployed multiple times (under different names) with different 
locking policies.


View raw message