• 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

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

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic