Initialize a web service when Tomcat startup

Hi,

I have a web service, built using Axis 2 1.2, that will do all the initialization at the first service call (e.g. create new database tables, create JAXB objects, etc), but it's taking too much time to do those tasks (at least twice slower than a normal service call with everything ready).

i was wondering if i can do the initialization at Tomcat startup, instead of doing it at the first service call, so that the first service call could always get the highest possible performance..

Thanks..

[525 byte] By [JWKC-5ivea] at [2007-11-27 9:04:00]
# 1
problem resolved... i've created a servlet class to initialize everything, and i have modified web.xml to call this servlet class when tomcat startup.
JWKC-5ivea at 2007-7-12 21:36:38 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...