Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what to have in context??  RSS feed

 
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!