tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schlichtherle <christ...@schlichtherle.de>
Subject Incorrect timer initialization
Date Wed, 21 Aug 2013 14:40:44 GMT
I have a singleton session bean which gets a TimerService injected like this:


    @Resource
    private TimerService timerService;

In a @PostConstruct method I use it like this:

        timerService.createTimer(intervalMillis, intervalMillis, null);

where intervalMillis is the equivalent of six hours.

However, the timer fires immediately as if the parameters had been:

        timerService.createTimer(0, intervalMillis, null);

I am led to believe this is a bug because I do get the expected behavior from Glassfish.

Regards,
Christian Schlichtherle


Mime
View raw message