7 Replies Latest reply on Nov 30, 2016 6:13 AM by Ales Justin

    Scheduling in Jboss AS 7

    Nico Nico Newbie

      Hi mates! i'm in the process of migration from Jboss 4 to 7 and I have doubts about how to configure a scheduler. In Jboss 4 there were the org.jboss.varia.schduler package, and I can define a scheduler in jboss-service.xml like


        <mbean code="org.jboss.varia.scheduler.Scheduler" name=":madex=MySchduler">

          <attribute name="StartAtStartup">true</attribute>

          <attribute name="SchedulableClass">com.test.MyScheduler</attribute>

          <attribute name="SchedulableArguments">CustomName</attribute>

          <attribute name="SchedulableArgumentTypes">java.lang.String</attribute>

          <attribute name="InitialStartDate">0</attribute>

          <attribute name="SchedulePeriod">${scheduler.period}</attribute>

          <attribute name="InitialRepetitions">-1</attribute>



      With the class com.test.MyScheduler implementing the org.jboss.varia.scheduler.Schedulable interface.


      Is there an easy way to do this en Jboss 7?


      Thanks in advance!