imbali
Jun 9th, 2008, 06:19 PM
Hi, I´m really new to the Spring Framework, so I might be making some very silly questions, but here goes:
Im working on an existing application that uses the Spring Framework. So here´s the thing, I would like to read some data from the db and perform some alterations to some of the data in it, but I wanted to do this when the web application was loaded.
I was thinking of creating a servlet that would deal with the alterations to the db and then in the web.xml define the "load-on-startup" and putting a smaller value than the value indicated to load the dispatcher servlet. So here´s my problem, I wont be able to access the db before the dispatcher servlet because then I wont be able to access the db, because all the hibernate configurations, datasource configuration are all done in the dispatcher serlvet.
Im working on an existing application that uses the Spring Framework. So here´s the thing, I would like to read some data from the db and perform some alterations to some of the data in it, but I wanted to do this when the web application was loaded.
I was thinking of creating a servlet that would deal with the alterations to the db and then in the web.xml define the "load-on-startup" and putting a smaller value than the value indicated to load the dispatcher servlet. So here´s my problem, I wont be able to access the db before the dispatcher servlet because then I wont be able to access the db, because all the hibernate configurations, datasource configuration are all done in the dispatcher serlvet.