1 Reply Latest reply on Aug 3, 2004 2:27 AM by starksm64

    [newbie] jboss4.0rc1/ejb2.1 timers and JMX

    dhartford

      Hey all,
      Newbie to the ejb2.1 timer service and JMX, so please forgive my ignorance. I am trying to setup a 'cron' on a SLSB to do a process every midnight (24 hours). What I do not understand is how to 'init' an SLSB timer service in ejb2.1 without an external event(i.e. not call a JSP page or something else to START the timer). I was thinking an MBean may help out with this - If I am on the right track, does anyone have an example of this?

      thanks in advance for any help!
      -D

        • 1. Re: [newbie] jboss4.0rc1/ejb2.1 timers and JMX
          starksm64

          Correct, you have to call a bean method to have the bean create the timer, and an mbean could be used to trigger this. I don't have an example, but it would be simply to add the ejb timer creation method call to the start method of the mbean. The mbean would have to depend on the ejb.