• 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

JTA or JDBC transaction

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In one session bean, this transaction involves a bunch of SQL calls to database. But all of them are in the same method of this bean. I understand both JTA or regular JDBC level transaction control will work. Which one is prefered though?
Thanks in advance ...
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you are already using EJB, in this case Session Beans, then it is easiest to just go with CMT which will make use of JTA. However, if you didn't already have this infrastructure in place then I would have went with the simplist solution possible which in this case (without considering any other requirements that I don't know of) would mean plain JDBC.
reply
    Bookmark Topic Watch Topic
  • New Topic