Win a copy of Head First Android this week in the Android 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Transactions

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a difference between the way EJB handles transaction to the way Hibernate does.
In my project we do not have EJB's and all the DB transactions are done using hibernate. for eg I open transaction after Session is created and close once all the database work is complete.

appreciate your reply.
 
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
No, transactions are transactions whatever the technology that starts on is.

Hibernate can be configured to use transactions in differernt ways, i.e. it can enlist in the EJBs CMT or do its own.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Transactions are transactions! But in Java applications, there are several APIs (or approaches) to manage transactions:
  • JDBC Transaction API
  • Java Transaction API (JTA)
  • Hibernate Transaction API
  • JPA Transaction API
  • Spring Transaction Abstraction API

  • To manage transactions in Hibernate applications, you can use Hibernate native API, JPA transaction API if you are developing on JPA, JTA if you are developing with multiple transactional resources, or preferably use Spring transaction abstraction API if you are developing Hibernate with Spring. You can find more about transaction management in Spring Persistence with Hibernate
    ---------------------------------------------------------------------------------------------------------------------------------------------



    Spring Persistence with Hibernate, By Ahmad Reza Seddighi
     
    You showed up just in time for the waffles! And this tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    reply
      Bookmark Topic Watch Topic
    • New Topic