title: How do I load a java class (not a servlet) when the tomcat server starts
body: <p>I need to continuously update and query a mysql database (and I don't think I need a servlet to do this, just a regular java class).  But I don't know how to call that class or run it when the servlet starts. </p>