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?

On Thu, 2004-09-30 at 18:42, Dain Sundstrom wrote:
> On Sep 30, 2004, at 3:31 PM, karan singh malhi wrote:
> 
> > Some applications assume that ejb-refs can be resolved by matching on
> > interface types.
> >
> > What does this mean?
> 
> Some applications like Petstore (at least the version Rajesh used) 
> don't have ejb-links so you have to resolve the reference by hand (a 
> total PITA).  As a last resort the deployment code can search the ear 
> for an ejb with a matching home and remote interface.  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.
> 
> -dain
> 

Reply via email to