wood burning stoves 2.0*
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
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: 1372
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
    
    1

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