Joined: Sat Aug 23, 2008 3:29 pm Posts: 7
|
We are new to Hibernate. I know that Session objects are not thread safe.
We create an object map and are able to divide objects in groups.
Would I be able to create multiple threads and assign a new session object and a group of objects (which are to be stored in the db) to each thread (from the same SessionFactory / second level cache) and speed up my inserts?
If yes, I also want to be able to manage the whole insert in one transation. Would this be possible using UserTransaction?
Any helpe would be greatly appreciated
|
|