For your application, you could create a servletListener.
For the whole app server, you could create a osgi-bundle with
an specific activator running your code.
As the bundle gets started on app-server startup, your code gets
executed.
--
[url=http://www.dominikdorn.com]Dominik Dorn[/url]
[url=http://www.studyguru.eu] Study Guru [/url] : Exchange your [url=
http://www.studyguru.eu] Studying materials [/url]