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.


-dain



Reply via email to