-->
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: Hibernate and Application server integration
PostPosted: Fri Mar 12, 2004 11:12 am 
Newbie

Joined: Fri Mar 12, 2004 10:02 am
Posts: 16
I'm looking for an example how to use Hibernate with JBoss and Session Beans. When using Enity Beans you don't care about transactions simply throwing an exeption is enough to rollback. Is there something similar available with Hibernate?

If not, is there a template how to write your code, a best practice?

Is the code using the container for transaction handling different from the stand alone code?

How about a template creating a ready to deploy EAR for JBoss?

Regards
Haug


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 12, 2004 3:06 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Yes Hibernate integrate well with CMT (search JTA in the reference guide)
No, no different code if you use Hibernate Transaction API

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 23, 2004 2:17 am 
Regular
Regular

Joined: Tue Mar 23, 2004 2:10 am
Posts: 51
Hi,
I just want to ask that, if i use spring fanework's hibernate abstraction layer can i use CMT in session beans or not????


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 24, 2004 12:02 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
yes


Top
 Profile  
 
 Post subject: How to use it
PostPosted: Wed Mar 24, 2004 7:58 am 
Regular
Regular

Joined: Tue Mar 23, 2004 2:10 am
Posts: 51
Hello
Thanks for quick repsonse,as u said that spring framework's abstarction layer can be used with Session beans using CMT,can you provide me the steps meaning how to do that??
Regards,
Shoaib Akhtar


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 11:32 am 
Senior
Senior

Joined: Tue Nov 25, 2003 9:35 am
Posts: 194
Location: San Francisco
http://www.hibernate.org/110.html

Sherman


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.