Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mellon Sun
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot figure this out, help is very welcome in any form.
 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Mellon Sun
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That helps very much, thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic