I would want to use Spring with hibernate caching in my application. My goal is to use hibernate to load my objects upon server startup thru a startup servlet I configured in web.xml.

Can I use the DAO and SessionFactory that I have configured in the applicationContext.xml in my servlet? Pls provide samples or other ways to implement.