2 Replies Latest reply on Feb 18, 2009 7:55 AM by ramboid

    Timer in JBoss

    rodosa

      Hello!!


      I would like if it's allowed to create a timer in my app and this timer were active while jboss is running. If Jboss is stopped the timer will ben cancellated and when the jboss running another time the timer would be started. Any ideas of how I could do this??


      Many thanks,

        • 1. Re: Timer in JBoss
          rodosa

          Ok, I'll do this with a MBean!!

          • 2. Re: Timer in JBoss
            ramboid

            I have done something like this with Quartz. Quartz comes with JBoss and you can either create a Quartz MDB. Search the Wiki for Quartz. There is annotated example for an EJB3 that you can just copy and add a call to whatever EJB, servlet, or program you want.