Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Annotation doubt

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@EJB annotaion can be applied to Type, method or field.

I understand that it can be applied to filed as
@EJB private SFSB sesionBean;

But how can it be applied to method and types [class or interface]. please explain with code.

@EJB annotation has three elements
a) name
b) beanInterfaceName
c) beanName.

I am confused about the beanName , can someone explain with code examples.
I read multiple times the concept given in EJB in action, am still not clear.
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take time and respond to this question.
 
Chandrashekhar Raiphale
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you check this link

http://edocs.bea.com/wls/docs100/ejb30/program.html

Let me know was this helpful for you or not
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic