Hello everyone I'm starting to work on a web application that includes jsp + hibernate. I saw a lot of tutorials, but I didn't see where should I create a SessionFactory object. I know this is a heavy object, and I should create one object to the whole application. One tutorial mentioned that I should create it when the application starts, but I don't understand it, because website doesn't have an entry point.. I don't use Spring or anything like that..just simple jsp pages, *.hbm.xml etc..
Please tell me where (and why..I want to understand..) to create this object
Thanks : )
|