• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what to have in context??

 
Lukas Alamar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im using hibernate in a web app under tomcat,
i create a hibernate configuration in a startup servlet
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 should 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic