• 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 ]
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!