You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by vnalla <v_...@hotmail.com> on 2016/09/01 22:00:29 UTC
TomEE 7.0.1 EJB TimerService does not trigger correctly
Hi,
I am testing javaee7 ejb timer example with TomEE 7.0.1 with java (oracle)
1.8.0_60 on mac version 10.11.6. The timers are getting fired too quickly.
ping = Ping {timeInfo='Every 5 second timer - AutomaticTimerBean',
time=1472765288809}
ping = Ping {timeInfo='Every 5 second timer - AutomaticTimerBean',
time=1472765290808}
ping = Ping {timeInfo='Every 5 second timer - MultipleScheduleTimerBean',
time=1472765292006}
ping = Ping {timeInfo='Every 10 second timer - MultipleScheduleTimerBean',
time=1472765292008}
ping = Ping {timeInfo='Every 5 second timer - MultipleScheduleTimerBean',
time=1472765295006}
ping = Ping {timeInfo='Every 5 second timer - ProgrammaticTimerBean',
time=1472765295836}
ping = Ping {timeInfo='Every 5 second timer - ProgrammaticTimerBean',
time=1472765300838}
ping = Ping {timeInfo='Every 5 second timer - SchedulesTimerBean',
time=1472765301679}
ping = Ping {timeInfo='Every 10 second timer - SchedulesTimerBean',
time=1472765301681}
ping = Ping {timeInfo='Every 5 second timer - SchedulesTimerBean',
time=1472765305679}
Thanks,
Venkat
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-EJB-TimerService-does-not-trigger-correctly-tp4680008.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: TomEE 7.0.1 EJB TimerService does not trigger correctly
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Nothing i think? Logging of the example just looks weird cause it doesnt
log an execution but a listed timer so you end up logging at the fastest
rate.
Le 3 sept. 2016 02:09, "vnalla" <v_...@hotmail.com> a écrit :
> Hi Romain,
>
> Yes, it worked once I removed the code getAllTimers ... But what is wrong
> with getAllTimers()?
>
> thanks,
> Venkat
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/TomEE-7-0-1-EJB-TimerService-does-not-trigger-
> correctly-tp4680008p4680028.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
Re: TomEE 7.0.1 EJB TimerService does not trigger correctly
Posted by vnalla <v_...@hotmail.com>.
Hi Romain,
Yes, it worked once I removed the code getAllTimers ... But what is wrong
with getAllTimers()?
thanks,
Venkat
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-EJB-TimerService-does-not-trigger-correctly-tp4680008p4680028.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: TomEE 7.0.1 EJB TimerService does not trigger correctly
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Did you get abused by the code which uses getAllTimers()?
If you change a bit the impl you can see it works as expected:
https://gist.github.com/rmannibucau/2b9dc757e7cc6cda429bf2f3d004458c
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>
2016-09-02 15:12 GMT+02:00 vnalla <v_...@hotmail.com>:
> Hi Romain,
>
> It is from Javaee7 examples, here is the link github link:
> https://github.com/javaee-samples/javaee7-samples/tree/
> master/ejb/lifecycle
>
> The only change I made is added the Bean name to info string value.
>
> thanks,
> Venkat
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/TomEE-7-0-1-EJB-TimerService-does-not-trigger-
> correctly-tp4680008p4680018.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
Re: TomEE 7.0.1 EJB TimerService does not trigger correctly
Posted by vnalla <v_...@hotmail.com>.
Hi Romain,
It is from Javaee7 examples, here is the link github link:
https://github.com/javaee-samples/javaee7-samples/tree/master/ejb/lifecycle
The only change I made is added the Bean name to info string value.
thanks,
Venkat
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-7-0-1-EJB-TimerService-does-not-trigger-correctly-tp4680008p4680018.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: TomEE 7.0.1 EJB TimerService does not trigger correctly
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Venkat
What is your code?
Le 2 sept. 2016 00:03, "vnalla" <v_...@hotmail.com> a écrit :
> Hi,
>
> I am testing javaee7 ejb timer example with TomEE 7.0.1 with java (oracle)
> 1.8.0_60 on mac version 10.11.6. The timers are getting fired too quickly.
>
> ping = Ping {timeInfo='Every 5 second timer - AutomaticTimerBean',
> time=1472765288809}
> ping = Ping {timeInfo='Every 5 second timer - AutomaticTimerBean',
> time=1472765290808}
> ping = Ping {timeInfo='Every 5 second timer - MultipleScheduleTimerBean',
> time=1472765292006}
> ping = Ping {timeInfo='Every 10 second timer - MultipleScheduleTimerBean',
> time=1472765292008}
> ping = Ping {timeInfo='Every 5 second timer - MultipleScheduleTimerBean',
> time=1472765295006}
> ping = Ping {timeInfo='Every 5 second timer - ProgrammaticTimerBean',
> time=1472765295836}
> ping = Ping {timeInfo='Every 5 second timer - ProgrammaticTimerBean',
> time=1472765300838}
> ping = Ping {timeInfo='Every 5 second timer - SchedulesTimerBean',
> time=1472765301679}
> ping = Ping {timeInfo='Every 10 second timer - SchedulesTimerBean',
> time=1472765301681}
> ping = Ping {timeInfo='Every 5 second timer - SchedulesTimerBean',
> time=1472765305679}
>
> Thanks,
> Venkat
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/TomEE-7-0-1-EJB-TimerService-does-not-trigger-
> correctly-tp4680008.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>