I want to initialize some things after tomcat is started.
As far as I know, there are two approaches:
* Write a Servlet and configure it in the web.xml with load-on-startup. But this seems to me like a hack. I want to init some stuff and don't serve someone.
* Add a LifecycleListener. How to configure this? In http://docs.sun.com/source/817-6087/dglfcycl.html#wp16901
is talked about a domain.xml, sometimes about a server.xml. I don't have neither.
Which is the 'right' way?