tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Incorrect timer initialization
Date Wed, 21 Aug 2013 14:54:50 GMT
hi

on turnk?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/8/21 Christian Schlichtherle <christian@schlichtherle.de>

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message