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

annotations for ejb-name and transaction-type

 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When defining an EJB in the deployment descriptor, we can use <ejb-name> element to specify the name of the EJB and <transaction-type> element to specify the transaction type as CMT or BMT.

My question is, how can we do this, without using a DD?
And is it possible to do so without having an EJB Home interfaces?
 
Arun Kumar Gupta
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using Dependency Injection

@Stateless (name="<ejb name>")
@Statefull(name="<ejb name>")

and
TransactionManagement(type=container /bean)
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Arun, should we have to know about this for the exam?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And is it possible to do so without having an EJB Home interfaces?

You're studying for EJB3, aren't you ? There is no home interfaces in EJB3.
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christophe.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic