tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1101445 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/timer/IntervalTimerData.java
Date Tue, 10 May 2011 12:53:26 GMT
Author: xuhaihong
Date: Tue May 10 12:53:25 2011
New Revision: 1101445

URL: http://svn.apache.org/viewvc?rev=1101445&view=rev
Log:
OPENEJB-1545 current interval timer can only trigger for 1 time. (Patch from Shawn Jiang)

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/timer/IntervalTimerData.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/timer/IntervalTimerData.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/timer/IntervalTimerData.java?rev=1101445&r1=1101444&r2=1101445&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/timer/IntervalTimerData.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/timer/IntervalTimerData.java
Tue May 10 12:53:25 2011
@@ -60,6 +60,7 @@ public class IntervalTimerData extends T
         Date startTime = new Date(initialExpiration.getTime() - intervalDuration);
         simpleTrigger.setStartTime(startTime);
         simpleTrigger.setRepeatInterval(intervalDuration);
+        simpleTrigger.setRepeatCount(SimpleTrigger.REPEAT_INDEFINITELY);
         return simpleTrigger;
     }
 



Mime
View raw message