title: Set/configure the EJB Timer Service’s DataSource
body: <p>I'm trying to use the Timer Service in EJB 3.1 in my app.</p>
  
  <pre><code>@Stateless
  @LocalBean
  public class StatelessTimerSessionBean {
  
      @Schedule(minute = "*", second = "0", dayOfMonth = "*", month = "*", year = "*", hour = "9-17", dayOfWeek = "Mon-Fri")
      public void myTimer() {
          System.out.println("Timer event: " + new Date());
      }
  }
  </code></pre>
  
  <blockquote>
    <p>".. set the EJB Timer Service’s Timer DataSource setting to a valid JDBC resource.."</p>
  </blockquote>
  
  <p>from <a href="http://docs.oracle.com/cd/E19316-01/820-4336/beahw/index.html">EJB Timer Service</a></p>
  
  <p>I cannot figure out how to configure the Timer Datasource correctly?</p>
  
  <p>The error I get when deploying is:</p>
  
  <pre><code>SEVERE: Exception while invoking class org.glassfish.ejb.startup.EjbApplication start method
  java.lang.RuntimeException: EJB Timer Service is not available
  </code></pre>
  
  <p>Running: glassfish-3.1.2.2</p>