This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate session  single threaded  ->  multi threaded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
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: 1368
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: 4968

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate session single threaded -> multi threaded
 
Similar Threads
servlet concepts
Is Servlets by default a single threaded model or multi threaded model
zahara
is MDB Muti-threaded
JMS Session single threaded -> multi threaded