Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

can we use container managed transactions for any method in our java application?

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
I know somethings about Container managed Transaction but i have some questions

-can we use the container to handle and manage transactions of our Session bean and session facades ?
I mean for example we dynamically configure the system to execute a method in a transaction context?

-in Java EE 5, how we should describe the tranasactions ?
i read that all Java EE 5 stuff uses annotation and annotation can not be changed after a class compiled.


thanks
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


-can we use the container to handle and manage transactions of our Session bean and session facades ?
I mean for example we dynamically configure the system to execute a method in a transaction context?


Yes - if the trans-attribute is "supports", and the client calling the EJB method does so within a transation. If the client doesn't call the method within a transaction then no transaction is used. Otherwise transactional behaviour is determined by the container (if CMT is defined for the method of course).
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic