0 Replies Latest reply on Jan 26, 2004 10:44 AM by Tom

    startService() and SchedulableMBean

    Tom Newbie

       

      "mrtom" wrote:
      Hello,
      I've just started to write some mbeans using the JBoss tools and am having some small problems with my initialization code. Basically I've worked from the SchedulableMBeanExample code and added a startService() method.

      Basically my problem is that the scheduler starts calling my 'hit' method before startService() has been run. So the first time the scheduled method is called I get errors, but then the logs show startService() running and from then on the method runs correctly.

      I've tried adding in a dependancy in the scheduler-service to the bean but this didn't work (although I'm still unsure whether my conf is doing any dependancies).

      Or am I trying to do something impossible?

      Thanks
      Tom.