aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes When ejb-link element or beanName attribute of @EJB is required? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "When ejb-link element or beanName attribute of @EJB is required?" Watch "When ejb-link element or beanName attribute of @EJB is required?" New topic
Author

When ejb-link element or beanName attribute of @EJB is required?

Mellon Sun
Ranch Hand

Joined: Feb 20, 2003
Posts: 126
I cannot figure this out, help is very welcome in any form.


SCJP,SCWCD1.3,SCWCD1.4,SCJD,SCBCD5,SCEA5
Ralph Jaus
Ranch Hand

Joined: Apr 27, 2008
Posts: 342
It's required when two bean classes in the same ejb-jar or ear-file implement the same business interface. In this case the bean name is used to identify the implementing bean class that will be injected.

At least with glassfish this can only happen for local business interfaces. See this link for details.
[ December 08, 2008: Message edited by: Ralph Jaus ]

SCJP 5 (98%) - SCBCD 5 (98%)
Mellon Sun
Ranch Hand

Joined: Feb 20, 2003
Posts: 126
That helps very much, thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When ejb-link element or beanName attribute of @EJB is required?
 
Similar Threads
What J2EE and EJB version will be taken in Part I?
Many to Many Table Relational Mapping with 3 Tables
What IDE Should I use?
EJB 2.0 or 2.1
Use of Helper classes