Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there any CMT in hibernate just like in EJB

 
srikanth darbha
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a query, Is there any CMT(Container Managed Transactions) in hibernate just like in EJB,because as far as i know we will do the following for transaction management in hibernate:

session = sessionFactory.openSession();
tx = session.beginTransaction();
//some action

tx.commit();

}catch (Exception ex) {
ex.printStackTrace();
tx.rollback();
}

is there any other way of handling the transactions.

Thanks in advance
D.Srikanth
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic