-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate session and transaction management
PostPosted: Sat Apr 11, 2009 7:14 am 
Beginner
Beginner

Joined: Wed May 10, 2006 9:43 pm
Posts: 30
Location: Australia
Hi everyone,

I would like to know the drawbacks of using hibernates built in session and transaction handling? Does it support multiple connections? I've read in a few places not for production use. I have been unable to find the specifics, is there a link you could point me towards?

I've looked into the other options; JTA and Spring unsure which approach to choose.

Thanks, Alyssa.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 13, 2009 8:54 pm 
Red Hat Associate
Red Hat Associate

Joined: Mon Aug 16, 2004 11:14 am
Posts: 253
Location: Raleigh, NC
This is much to broad a topic to address in a forum response. I'd suggest reading Java Persistence with Hibernate, there is a ton of information that will help you make an educated decision. In general, you should configure a container managed DataSource (-ds.xml in JBoss, <Resource> / <ResourceParams> in Tomcat or DBCP in Spring) and use declarative Transaction management. EJB3 makes all this pretty painless, as does Spring (the latter requires more configuration).

HTH,

Chris

_________________
Chris Bredesen
Senior Software Maintenance Engineer, JBoss


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.