1 Reply Latest reply on Jun 26, 2002 10:10 PM by Joel Vogt

    How do I execute a class when my app (ear) Starts up??

    Tim Bauer Novice

      I'm not totally new to using JBoss/Jetty, but have not explored all the
      advanced features.

      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?? thanks....