I'm not totally new to using JBoss/Jetty, but have not explored all the
I deploy my appliction via copying the .ear file to the deploy
directory of JBoss. What I want to do, is have it automatically run a
class when the application startups up, NOT when JBoss starts up!!!
This class will do some database cleanup like purge old records,
etc...Could someone please give me some pointers or examples of how to
automatically run a class when my app starts up?? Using JBoss 2.2.4.
I have done this using a servlet that is loaded automatically upon WER start up. It is simple and works well. As to controlling that the servlet runs only once you could use some boolean flag.