7 Replies Latest reply on Oct 30, 2003 12:55 PM by brianko

    MBean and Scheduling

    johnurban Newbie

      I need to have a java class startup when my web app gets deployed. So I have created an MBean that starts perfectly.

      I need to call a job database every 10 to 15 seconds in this MBean, checking for new jobs. Once a I get a job from the DB and need to kick off a thread to do some work.

      I foolishly coded the main loop in the startService() method, so once JBoss got to my MBean, the world stopped and nothing else got deployed.

      How do I accomplish this in an MBean or I am traveling the wrong road?