-->
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.  [ 6 posts ] 
Author Message
 Post subject: In whihc case we should go for container managed transaction
PostPosted: Thu Mar 04, 2004 5:28 pm 
Beginner
Beginner

Joined: Wed Mar 03, 2004 4:56 pm
Posts: 29
Hi

In which we can use container managed transaction and not go for hibernate transaction?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 04, 2004 10:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
If you use SLSBs (session EJBs) you can set methods to use CMT so accessing hibernate from this point will be interacting with the container managed transaction. The answer is; it depends on your architecture.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2004 11:08 am 
Beginner
Beginner

Joined: Wed Mar 03, 2004 4:56 pm
Posts: 29
When we set session bean to container managed in wsad and try to use hibernate transactions, then it gives error. Can't we use session.beginTransaction()?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2004 12:01 pm 
Beginner
Beginner

Joined: Wed Mar 03, 2004 4:56 pm
Posts: 29
When we set session bean to container managed in wsad and try to use hibernate transactions, then it gives error. Can't we use session.beginTransaction()?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2004 12:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Of course you can most likely you have not configured Hibernate correctly, look at http://www.hibernate.org/hib_docs/reference/html/session-configuration.html#session-configuration-s5-7


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 05, 2004 10:32 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Yogs wrote:
When we set session bean to container managed in wsad and try to use hibernate transactions, then it gives error. Can't we use session.beginTransaction()?

If you use WSAD 5.1, be sure to use the latest Hibernate version

_________________
Emmanuel


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

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.