• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

CMT Beans.  RSS feed

 
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!
 
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
 
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
 
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?
 
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!