title: Execute service method periodically
body: <p>So, I have a service: </p>
  
  <pre><code>@Stateless
  public void SomeService {
  
      public void someAction() {
          ...
      }
  }
  </code></pre>
  
  <p>And I have a config file <code>timer.properties</code> which contains following string:</p>
  
  <pre><code>refresh.interval=1234
  </code></pre>
  
  <p>The question is to find how to automatically execute <code>someAction()</code> every 1234 seconds? I tried <code>@Schedule</code>, but it works only with constants. The application must read value from config (already implemented with <code>@Startup.. @PostConstruct</code> bean method) and set this value as execution interval for <code>someMethod()</code>.</p>