I am developing a java web-site. It fetches data from http://projects.zoho.com.
I have to fetch data using its API and want to fill database in a session.
But, I need this process occur at deploy time. Means, at first time when I deploy web, it would fill whole database and then at every session period of time it fills data automatically.
What step I should follow ?