I've got a
servlet to cache my data from several databases located all over the world. Some have fast lines, some slow. I initially had all of the data cached on start-up by setting the servlet to run in web.xml, but now some of the offices that have been added are taking 10 minutes plus to connect to.
My question is, how do I automate the caching of my data after the appilcation itself has started, so that the application doesn't take forvever to come online, but that the data can be populated as the databases return their queries?
I'd really appreciate any example code.
Many thanks
Andrew