views:

159

answers:

2

hello good people! i'm a bit new in the world of hibernate and i lack knowledge in certain domain when it comes to java.I know for a fact that a good piece of software that uses hibernate use a session manager that can provide different kind of session.i'll like to create for now a simple session manager on top of which i'll build gradually the other implementations.thanks for reading

+2  A: 

Use the Spring session management, don't build this.

stevedbrown
A: 

Use the extended ThreadLocal pattern.

ok thanks for the answer
black sensei