title: @Singleton, @Startup, @PostConstruct doesn't work on EJB3.1 and Glassfishv3.0.1
body: <p>I have a problem with this setup and I can't even view the logs.</p>
  
  <p>This is my <code>@Singleton</code> <code>@Startup</code> EJB:</p>
  
  <pre><code>@Singleton
  @Startup
  @DependsOn("SchedulerEJB")
  public class SchedulerStartUp {
  
      private static Logger log = Logger.getLogger(SchedulerStartUp.class);
  
      @EJB
      SchedulerEJB schedEJB;  
  
      @PostConstruct
      public void atStartup() {
         log.info("startUp")
         System.out.println("startUp");
  
         schedEJB.cancelTimer("EBlastScheduler");
         schedEJB.createTimer("*/1", "*", "*");
      }
  }
  </code></pre>
  
  <p>The <code>SchedulerEJB</code>:</p>
  
  <pre><code> @Stateless
   public class SchedulerEJB {
  
      @Resource
      TimerService timerService;         
  
      public cancelTimer(String timerInfo){/*...*/}
  
      public createTimer(String sec, String min, String hour) {/*...*/}
  
      @Timeout
      public void execute(Timer timer) {/*...*/}
   }
  </code></pre>
  
  <p>Maven pom: </p>
  
  <pre><code> //Been Using Glassfishv3.0.1 and EJB3.1 with a dependency of:
   &lt;dependency&gt;
       &lt;groupId&gt;javax&lt;/groupId&gt;
       &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
       &lt;version&gt;6.0&lt;/version&gt;
       &lt;scope&gt;provided&lt;/scope&gt;
   &lt;/dependency&gt;
  </code></pre>