-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Transaction Managment
PostPosted: Sun Oct 12, 2008 9:36 am 
Newbie

Joined: Wed Sep 10, 2008 9:43 am
Posts: 4
Hi everyone,

I'm a bit confused, and I'm hoping someone could help me:

I have a J2EE application which uses EJB 3.0 + Hibernate.
Since I'm working with a local framework, I only have entity beans and no session beans (framework elements replace the need for session beans).

I want to manage the transaction manually (begin, commit, rollback), but I'm a bit confused.

Correct me if I'm wrong, but:
- It seems to me that there are 2 way to control transactions:
1. javax.persistence.EntityTransaction
2. javax.transaction.UserTransaction


So far I've been using EntityTransaction to manage my transactions.
But now I wonder what's the difference between using EntityTranscation and UserTransacation.

Moreover, how come EntityTransaction has no 'setTransactionTimeout' method like UserTransaction has ?

Regards,
R.D


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.