title: JBoss Wildfly - Scheduler
body: <p>I know how to make and work with a Scheduled job in Wildfly as such:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Stateless
  public class MyTasks{
  
      @Schedule(hour = "*", minute = "5")
      public void doWork() {
          System.out.println("helo world!");
      }
  }
  </code></pre>
  
  <p>How do I update the timer or execute this schedule immediately without having to update the code.  In JBoss 4, using MBeans and the JMX console I could change the timer and execute the job whenever.  Is there something or somewhere that allows me access this task?  </p>
  
  <p>What I would ideally like is something like below:</p>
  
  <pre class="lang-java prettyprint-override"><code>@ManagedBean
  public class ManagedTask{
  
      public void executeTask() {
          //Not valid
         MyTasks mytasks = new MyTasks();
        mytasks.setTimer(...):
        mytasks.do work();
      }
  }
  </code></pre>