1 Reply Latest reply on Jul 2, 2002 6:31 AM by lekkim

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

    tbauer

      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?? Using JBoss 2.2.4.

      thanks....