0 Replies Latest reply on Apr 9, 2007 5:37 PM by Keith Marshall

    Service Now kicking in

    Keith Marshall Newbie

      I am new to the use of MBEAN services. I have a pojo that is annotated as a service. Upon deployment it registers itself fine. I coded the create and start methods to do a system out on startup. That all works fine.

      however, i am trying to get it to run as a timer type service. That part never kicks in. Here is my xml service file.

      <server>
       <mbean code="org.jboss.varia.scheduler.Scheduler" name="com.insight:service=AppDataRefreshServiceScheduler">
       <attribute name="StartAtStartup">true</attribute>
       <attribute name="SchedulableMBean">jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface</attribute>
       <attribute name="SchedulableMBeanMethod">resetApplicationDataStore</attribute>
       <attribute name="InitialStartDate">NOW</attribute>
       <attribute name="SchedulePeriod">10000</attribute>
       <attribute name="InitialRepetitions">-1</attribute>
       <depends>jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface</depends>
       </mbean>
      </server>