tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tschuler <>
Subject AW: Fired cron trigger not available
Date Mon, 02 Sep 2013 14:13:33 GMT
Hi Romain!

Review result: the test will NOT work because of the @Schedule annotation - it adds a timer
causing the first assert to fail.
Find a similar test for cron (or calendar) timers in the attached java file.
If you can review it and adapt it to TomEE “standard”, I might add some more test cases
(e.g. for duration timer and date timer).

I checked again my settings and found out that the behavior (Fired cron trigger not available)
only happens if quartz jobs are persisted to external database.
Sorry for misleading you. Can you reproduce it now?

Is it possible to add quartz persistence to tests using the ApplicationComposer to demonstrate
it in an automated test?

Best regards,

Von: Romain Manni-Bucau [via OpenEJB] []
Gesendet: Montag, 2. September 2013 12:07
An: Thomas Schuler
Betreff: Re: Fired cron trigger not available

just commited something regarding it, if you want to review the test here
it is:

*Romain Manni-Bucau*
*Twitter: @rmannibucau <>*
*Blog: ***<>
*LinkedIn: ***

2013/9/2 Romain Manni-Bucau <[hidden email]</user/SendEmail.jtp?type=node&node=4664944&i=0>>

> Iirc it was using remote ejb right? Can you update it to be a simple junit
> test (using ApplicationComposer for instance). Then we could include it in
> tomee unit tests directly.
> Le 2 sept. 2013 11:21, "tschuler" <[hidden email]</user/SendEmail.jtp?type=node&node=4664944&i=1>>
a écrit :
>  Hi Romain!
>> I already shared the tests for topic "Fired calendar trigger still
>> available" (resulting in
>> ).
>> It includes two tests for cron triggers (class TestTimers):
>> - method testCronTriggerNotFiring: Shows that a not fired cron trigger can
>> be found and canceled.
>> - method testCronTriggerFiring: Shows that an at least once fired cron
>> trigger cannot be found (and therefore cannot be canceled) any more and
>> keeps on firing.
>> Best regards,
>> Thomas
>> --
>> View this message in context:
>> Sent from the OpenEJB User mailing list archive at

If you reply to this email, your message will be added to the discussion below:
To unsubscribe from Fired cron trigger not available, click here<>.
NAML<> (5K) <>

View this message in context:
Sent from the OpenEJB User mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message