• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CMT Beans.

 
Angelino Dolce
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!
"For a SESSION bean, the transaction attributes MUST be specified for the methods defined in the bean's COMPONENT interface "!

If i NOT specify what happen: The methos execute without a transaction or What? What is dhe default behavior?
Thank You!
 
Sirajudeen Mohamed
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
It depends on the container provider. Most containers provide the default transaction attribtue. for example weblogic has the default attribute as supports.

Siraj
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The methos execute without a transaction or What? What is dhe default behavior?


In case you did not specify transction type for CMT beans, the default type will be used. However, different containers will have different default types, and thus, you have to check the documentation of the container to obtain the default behaviour.

Nick
 
Rudy Harianto
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
since it is a vendor specific behaviour, it wont show up in the exam right?
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The exam is all about your understanding of the EJB spec, so remove from your memory anything which is vendor-specific.

Returning to transaction attributes: you should always specify them. If you allow the EJB Server to provide a default attribute of Supports, this is really asking for trouble and should, in my opinion, never be used. So, for the exam, learn about Supports but keep away from it in the real world!
 
Angelino Dolce
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You very much!
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
since it is a vendor specific behaviour, it wont show up in the exam right?

Yes, so there will be no question about default behaviour.

In the exam, you have to know using what transaction types under what situations.

Nick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic