• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Default EJB transaction attribute

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can someone please tell me what is the default transaction attribute in EJB 2.0,3.0 Container managed transactions.

I think I have somewhere read it is Support for EJB 2.0 and it is Required for EJb 3.0.

But on the internet it is mentioned that the default transaction attribute is dependent on the Application server one is using and the default transaction type varies depending on the server.I could not get one final answer.

Also this could not be verified from the code as one cannot access the presence of a transaction in the EJB bean as it is not allowed while using Container managed transactions.

Regards:
Nabeel
 
Ranch Hand
Posts: 100
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nabeel,

In case of EJB3.0, the spec says the following

By default, if a TransactionAttribute annotation is not specified for a method of an enterprise
bean with container-managed transaction demarcation, the value of the transaction attribute for the
method is defined to be REQUIRED.

 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic