my dog learned polymorphism
The moose likes Object Relational Mapping and the fly likes Hibernate session  single threaded  ->  multi threaded Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Hibernate session  single threaded  ->  multi threaded" Watch "Hibernate session  single threaded  ->  multi threaded" New topic
Author

Hibernate session single threaded -> multi threaded

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1300
Why Hiberante session is default thread-safe(single threaded) ? Is there a way to convert to multi threaded ?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

When you deploy to a JEE5 container, you can simply switch to use the native transaction management system on that server. But for developing and testing, the single thread model makes the most sense.

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate session single threaded -> multi threaded
 
Similar Threads
zahara
Is Servlets by default a single threaded model or multi threaded model
is MDB Muti-threaded
JMS Session single threaded -> multi threaded
servlet concepts