5 Replies Latest reply: Apr 12, 2012 12:20 PM by Wolf-Dieter Fink RSS

TimerService startup issue in JBoss AS 6

Abdur Rahman Newbie

I am using JBoss AS 6. I have created a timer service listed bellow:



package com.mycompany.infrastructure.notification.service;


import javax.ejb.Schedule;

import javax.ejb.Stateless;

import javax.ejb.Timer;



public class NotificationTimerService {


    @Schedule(second = "*/30", minute = "*", hour = "*", dayOfWeek = "*", timezone = "GMT")

    public void executeSomeMethod(Timer timer) {

        System.out.println("Invoking daily event notification ...");

        / / call some session bean here






1. When I restart jboss server the timer service starts execution before the conatainer/application is loaded completely. I want it start execution onces all the session beans (and other classes) are loaded.

2. It executes all the previous invocations that were missed when jboss server was offline. I want it ignore missing calls due to offline mode.