3 Replies Latest reply on Apr 3, 2006 10:58 AM by Jimmy Wilson

    JBOSS  auto starts main() method

    ft liou Newbie

      Hi. I have a J2EE application deployed in a JBoss server. As part of this application, I have a piece of code/file(something like a main() method) that needs to run in the background which is like a monitor that monitors my application, it basically checks the states of my application say every 30 secs and call the appropriate EJB inside my J2EE application depending on certain conditions. Are there any ways to tell jboss to start running this main() method as soon as Jboss starts (instead of using a servlet)?
      Please provide more details with your solution/suggestions as I am a very newbie in JBOSS :) ... Thank you very much in advance.