Register / Login
Win a copy of
Java 9 Revealed
this week in the
Features new in Java 9
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
Object Relational Mapping
what to have in context??
posted 11 years ago
im using hibernate in a web app under
i create a hibernate configuration in a startup
but i dont know what to put in the app context for future use
is correct to store Config in the context and retrieve/close a SessionFactory every time i need it or
i put SessionFactory in the context and get it in my classes?
what's the correct method?
thank u guys
[ July 01, 2005: Message edited by: Lukas Alamar ]
It is sorta covered in the
JavaRanch Style Guide
Boost this thread!
Hibernate template puts a lock on database after 5-6 calss to it.
What does a SessionFactory object cache?
Java app on Tomcat return "Network Error (tcp_error)" error
Design question for creating a DAO using Hibernate