i`m going to develop a web application and I wanted to use hibernate + spring. in a standalone application, for initializing hibernate or spring we will call the factory object or etc. i mean it is the main function responsibility to create first spring or hibernate beans.
but in a web application which is based on jsp+servlets and other beans, i don`t know who is responsible to prepare spring or hibernate. what is the solution?