<div>$B2CF#$5$s(B<br></div><div></div><div>$B$($S$J$G$9!#(B</div><div></div><div><br>$B$4BP1~$$$?$@$-!"$"$j$,$H$&$4$6$$$^$9!#(B</div><div><span></span>$B3NG'$K<j4V<h$C$F$*$j$^$9$N$G!"?=$7Lu$"$j$^$;$s$,$$$^$7$P$i$/$*BT$A$/$@$5$$!#(B<br>$B!t8+47$l$L%(%i!<$,$G$F$-$?$h$&$J(B…<br><br>$B59$7$/$*4j$$$$$?$7$^$9!#(B<br><br></div><div></div><br><div class="gmail_quote">
2009$BG/(B12$B7n(B10$BF|(B1:34 Junichi Kato <span dir="ltr"><<a href="mailto:j5ik2o@gmail.com" target="_blank">j5ik2o@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">$B$($S$J$5$s(B<br>
$B2CF#$G$9!#(B<br>
<br>
$BCY$/$J$j$^$7$?$,!"(BSNAPSHOT$B$rH/9T$7$^$7$?!#(B<br>
$B$43NG'$/$@$5$$!#(B<br>
<br>
<a href="http://maven.seasar.org/maven2-snapshot/org/seasar/chronos/s2chronos-core/1.0.1-SNAPSHOT/s2chronos-core-1.0.1-20091209.163037-5.jar" target="_blank">http://maven.seasar.org/maven2-snapshot/org/seasar/chronos/s2chronos-core/1.0.1-SNAPSHOT/s2chronos-core-1.0.1-20091209.163037-5.jar</a><br>
<br>
2009$BG/(B12$B7n(B8$BF|(B11:26 Junichi Kato <<a href="mailto:j5ik2o@gmail.com" target="_blank">j5ik2o@gmail.com</a>>:<br>
<div><div>> $B$($S$J$5$s(B<br>
> $B2CF#(B(j5ik2o)$B$G$9!#(B<br>
><br>
> $B%5%s%W%k%=!<%9$"$j$,$H$&$4$6$$$^$7$?!#(B<br>
> $B:F8=$r3NG'$7$^$7$?!#(B<br>
><br>
> concurrent$B%Q%C%1!<%8$N(BTask<a href="http://xn--vbk.NET" target="_blank">$B$r(B.NET</a>$B$N%G%j%2!<%H$N$h$&$J(BAPI$B$G%i%C%W$7$F$$$k%/%i%9(B(MethodInvoker)$B$,$"$k$N$G$9$,!"(B<br>
> $B$=$3$GNc30H/@8;~$KHsF14|%*%V%8%'%/%H$r%j%9%H$+$i$r:o=|$9$k=hM}$,8F$P$l$J$$$h$&$K$J$C$F$$$^$7$?!#$9$_$^$;$s!#!#(B<br>
> $B%3!<%I$N=$@5$O$G$-$?$N$G!"K\F|Lk$K(BSNAPSHOT$B$rH/9T$7$^$9!#(B<br>
> $B$7$P$i$/$*BT$A$/$@$5$$!#(B<br>
><br>
> $B$h$m$7$/$*4j$$$$$?$7$^$9!#(B<br>
><br>
> 2009$BG/(B12$B7n(B4$BF|(B10:12 Yasutaka Ebina <<a href="mailto:uncanny.chaplin@gmail.com" target="_blank">uncanny.chaplin@gmail.com</a>>:<br>
>> $B2CF#(B(j5ik2o)$B$5$s(B<br>
>><br>
>> $B$*@$OC$K$J$j$^$9!#$($S$J$G$9!#(B<br>
>><br>
>> $B%5%s%W%k%=!<%9$r:n@.$7$^$7$?$N$G!"$43NG'$N$[$I59$7$/$*4j$$CW$7$^$9!#(B<br>
>><br>
>> ---$B%=!<%9%3!<%I(B---------------<br>
>><br>
>> @Task<br>
>> @CronTrigger(expression = "*/10 * * * * ?")<br>
>> public class SampleTask {<br>
>> private int count = 0;<br>
>> public Exception exception = null;<br>
>><br>
>> public void start() {<br>
>> ++count;<br>
>> exception = null;<br>
>><br>
>> log("------------");<br>
>> log(" start(): COUNT=" + count + ", EXCEPTION=" + exception);<br>
>> }<br>
>><br>
>> public void doExecute() {<br>
>> log("doExecute(): COUNT=" + count + ", EXCEPTION=" + exception);<br>
>><br>
>> if (count % 2 == 0) {<br>
>> RuntimeException e = new RuntimeException("COUNT=" + count);<br>
>><br>
>> log("doExecute(): throw " + e);<br>
>> throw e;<br>
>> }<br>
>> }<br>
>><br>
>> public void end() {<br>
>> log(" end(): COUNT=" + count + ", EXCEPTION=" + exception);<br>
>> }<br>
>><br>
>> private void log(String s) {<br>
>> // $B%m%0=PNO(B<br>
>> }<br>
>> }<br>
>><br>
>> ---$B%m%0(B---------------<br>
>> **I* <2009/12/03 18:30:21.203> ------------<br>
>> **I* <2009/12/03 18:30:21.203> start(): COUNT=1, EXCEPTION=null<br>
>> **I* <2009/12/03 18:30:21.234> doExecute(): COUNT=1, EXCEPTION=null<br>
>> **I* <2009/12/03 18:30:21.234> end(): COUNT=1, EXCEPTION=null<br>
>> **I* <2009/12/03 18:30:31.156> ------------<br>
>> **I* <2009/12/03 18:30:31.156> start(): COUNT=2, EXCEPTION=null<br>
>> **I* <2009/12/03 18:30:31.156> doExecute(): COUNT=2, EXCEPTION=null<br>
>> **I* <2009/12/03 18:30:31.156> doExecute(): throw<br>
>> java.lang.RuntimeException: COUNT=2<br>
>> **I* <2009/12/03 18:30:31.187> end(): COUNT=2,<br>
>> EXCEPTION=org.seasar.chronos.core.exception.ExecutionRuntimeException:<br>
>> java.util.concurrent.ExecutionException: java.lang.RuntimeException: COUNT=2<br>
>> **I* <2009/12/03 18:30:41.156> ------------<br>
>> **I* <2009/12/03 18:30:41.156> start(): COUNT=3, EXCEPTION=null<br>
>> **I* <2009/12/03 18:30:41.187> doExecute(): COUNT=3, EXCEPTION=null<br>
>> **I* <2009/12/03 18:30:41.187> end(): COUNT=3,<br>
>> EXCEPTION=org.seasar.chronos.core.exception.ExecutionRuntimeException:<br>
>> java.util.concurrent.ExecutionException: java.lang.RuntimeException: COUNT=2<br>
>> **I* <2009/12/03 18:30:51.156> ------------<br>
>> **I* <2009/12/03 18:30:51.156> start(): COUNT=4, EXCEPTION=null<br>
>> **I* <2009/12/03 18:30:51.171> doExecute(): COUNT=4, EXCEPTION=null<br>
>> **I* <2009/12/03 18:30:51.187> doExecute(): throw<br>
>> java.lang.RuntimeException: COUNT=4<br>
>> **I* <2009/12/03 18:30:51.187> end(): COUNT=4,<br>
>> EXCEPTION=org.seasar.chronos.core.exception.ExecutionRuntimeException:<br>
>> java.util.concurrent.ExecutionException: java.lang.RuntimeException: COUNT=4<br>
>> **I* <2009/12/03 18:31:01.156> ------------<br>
>> **I* <2009/12/03 18:31:01.156> start(): COUNT=5, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:01.156> doExecute(): COUNT=5, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:01.187> end(): COUNT=5,<br>
>> EXCEPTION=org.seasar.chronos.core.exception.ExecutionRuntimeException:<br>
>> java.util.concurrent.ExecutionException: java.lang.RuntimeException: COUNT=2<br>
>> **I* <2009/12/03 18:31:11.171> ------------<br>
>> **I* <2009/12/03 18:31:11.171> start(): COUNT=6, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:11.187> doExecute(): COUNT=6, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:11.203> doExecute(): throw<br>
>> java.lang.RuntimeException: COUNT=6<br>
>> **I* <2009/12/03 18:31:11.203> end(): COUNT=6,<br>
>> EXCEPTION=org.seasar.chronos.core.exception.ExecutionRuntimeException:<br>
>> java.util.concurrent.ExecutionException: java.lang.RuntimeException: COUNT=6<br>
>> **I* <2009/12/03 18:31:21.171> ------------<br>
>> **I* <2009/12/03 18:31:21.171> start(): COUNT=7, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:21.187> doExecute(): COUNT=7, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:21.203> end(): COUNT=7,<br>
>> EXCEPTION=org.seasar.chronos.core.exception.ExecutionRuntimeException:<br>
>> java.util.concurrent.ExecutionException: java.lang.RuntimeException: COUNT=2<br>
>> **I* <2009/12/03 18:31:31.171> ------------<br>
>> **I* <2009/12/03 18:31:31.171> start(): COUNT=8, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:31.187> doExecute(): COUNT=8, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:31.203> doExecute(): throw<br>
>> java.lang.RuntimeException: COUNT=8<br>
>> **I* <2009/12/03 18:31:31.203> end(): COUNT=8,<br>
>> EXCEPTION=org.seasar.chronos.core.exception.ExecutionRuntimeException:<br>
>> java.util.concurrent.ExecutionException: java.lang.RuntimeException: COUNT=8<br>
>> **I* <2009/12/03 18:31:41.171> ------------<br>
>> **I* <2009/12/03 18:31:41.171> start(): COUNT=9, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:41.203> doExecute(): COUNT=9, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:41.203> end(): COUNT=9,<br>
>> EXCEPTION=org.seasar.chronos.core.exception.ExecutionRuntimeException:<br>
>> java.util.concurrent.ExecutionException: java.lang.RuntimeException: COUNT=2<br>
>> **I* <2009/12/03 18:31:51.171> ------------<br>
>> **I* <2009/12/03 18:31:51.171> start(): COUNT=10, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:51.203> doExecute(): COUNT=10, EXCEPTION=null<br>
>> **I* <2009/12/03 18:31:51.203> doExecute(): throw<br>
>> java.lang.RuntimeException: COUNT=10<br>
>> **I* <2009/12/03 18:31:51.203> end(): COUNT=10,<br>
>> EXCEPTION=org.seasar.chronos.core.exception.ExecutionRuntimeException:<br>
>> java.util.concurrent.ExecutionException: java.lang.RuntimeException:<br>
>> COUNT=10<br>
>><br>
>> -----<br>
>><br>
>><br>
>> 09/12/03 Junichi Kato <<a href="mailto:j5ik2o@gmail.com" target="_blank">j5ik2o@gmail.com</a>>:<br>
>>><br>
>>> $B$($S$JMM(B<br>
>>> $B2CF#(B(j5ik2o)$B$G$9!#(B<br>
>>><br>
>>> $BIT6q9gJs9p$"$j$,$H$&$4$6$$$^$9!#(B<br>
>>> $B$*<j?t$G$9$,!"IT6q9g$,:F8=$9$k%5%s%W%k%=!<%9$r$$$?$@$$$F$b$h$m$7$$$G$7$g$&$+!)(B<br>
>>><br>
>>><br>
>>> 2009$BG/(B12$B7n(B2$BF|(B12:52 Yasutaka Ebina <<a href="mailto:uncanny.chaplin@gmail.com" target="_blank">uncanny.chaplin@gmail.com</a>>:<br>
>>><br>
>>> > $B$($S$J$H?=$7$^$9!#(B<br>
>>> > s2chronos$B$G2<5-$N$h$&$J=hM}$r9T$*$&$H9M$($F$*$j$^$9$,!"(B<br>
>>> > 1$BEY(BException$B$,H/@8$9$k$H!"$=$l0J8e(BException$B$,(BDI$B$5$lB3$1$F$7$^$$$^$9!#(B<br>
>>> ><br>
>>> > $B%?%9%/$r0lDj<~4|(B($BNc$($P(B1$BJ,Kh(B)$B$G5/F0$7!"(B<br>
>>> > $B!&(BException$B$,5/$-$F$$$J$1$l$P!"@5>o=*N;%a!<%k$rAw?.$9$k(B<br>
>>> > $B!&(BException$B$,5/$-$F$$$l$P!"0[>o=*N;%a!<%k$rAw?.$9$k(B<br>
>>> > $B$H$$$&=hM}$r9T$$$?$$$N$G$9$,!"(B<br>
>>> > 1$BEY(BException$B$,H/@8$9$k$H!"<!2s0J9_$N%?%9%/<B9T;~$K(B<br>
>>> > $B0JA0H/@8$7$?(BException$B$,(BDI$B$5$l$F$7$^$7$^$9!#(B<br>
>>> ><br>
>>> > $B6qBNE*$K$O!"(B<br>
>>> > 1$B2sL\<B9T;~!'(B Exception$B$J$7!J@5>o%a!<%k!K(B<br>
>>> > 2$B2sL\<B9T;~!'(B Exception$B$"$j!J0[>o%a!<%k!K(B<br>
>>> > 3$B2sL\<B9T;~!'(B Exception$B$J$7!J0[>o%a!<%k!K(B<br>
>>> > $B$H$J$C$F$7$^$$$^$9!#(B<br>
>>> ><br>
>>> ><br>
>>> > start$B%a%=%C%I$G=i4|2=$r9T$&=hM}(B(exception = null)$B$r=q$$$F$_$^$7$?$,!"(B<br>
>>> > end$B%a%=%C%I$N%?%$%_%s%0$G:F$S(BException$B$,(BDI$B$5$l$F$7$^$$$^$9!#(B<br>
>>> > $B"(%a!<%kAw?.=hM}$O(Bend$B%a%=%C%I$G=hM}$7$F$$$^$9!#(B<br>
>>> > $B"(%a!<%kAw?.=hM}$N$H$-$K!"(BException$B$NM-L5$rH=Dj$7$F$$$^$9!#(B<br>
>>> ><br>
>>> ><br>
>>> > $B2?$+NI$$BP1~J}K!$,$"$l$P!"65$($F$$$?$@$1$^$9$G$7$g$&$+!#(B<br>
>>> > $B59$7$/$*4j$$CW$7$^$9!#(B<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>><br>
>>> > _______________________________________________<br>
>>> > Seasar-user mailing list<br>
>>> > <a href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org</a><br>
>>> > <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>>> ><br>
>>> ><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> /**<br>
>>> * name : Junichi Kato<br>
>>> * email : <a href="mailto:j5ik2o@gmail.com" target="_blank">j5ik2o@gmail.com</a><br>
>>> *<br>
>>> * blog : <a href="http://d.hatena.ne.jp/j5ik2o/" target="_blank">http://d.hatena.ne.jp/j5ik2o/</a><br>
>>> *<br>
>>> * commiting projects :<br>
>>> * <a href="http://jiemamy.org/" target="_blank">http://jiemamy.org/</a><br>
>>> * <a href="http://s2chronos.sandbox.seasar.org/" target="_blank">http://s2chronos.sandbox.seasar.org/</a><br>
>>> * <a href="http://s2config.sandbox.seasar.org/" target="_blank">http://s2config.sandbox.seasar.org/</a><br>
>>> */<br>
>>> _______________________________________________<br>
>>> Seasar-user mailing list<br>
>>> <a href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org</a><br>
>>> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Seasar-user mailing list<br>
>> <a href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org</a><br>
>> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>><br>
>><br>
><br>
><br>
><br>
> --<br>
> /**<br>
> * name : Junichi Kato<br>
> * email : <a href="mailto:j5ik2o@gmail.com" target="_blank">j5ik2o@gmail.com</a><br>
> *<br>
> * blog : <a href="http://d.hatena.ne.jp/j5ik2o/" target="_blank">http://d.hatena.ne.jp/j5ik2o/</a><br>
> *<br>
> * commiting projects :<br>
> * <a href="http://jiemamy.org/" target="_blank">http://jiemamy.org/</a><br>
> * <a href="http://s2chronos.sandbox.seasar.org/" target="_blank">http://s2chronos.sandbox.seasar.org/</a><br>
> * <a href="http://s2config.sandbox.seasar.org/" target="_blank">http://s2config.sandbox.seasar.org/</a><br>
> */<br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div><div>/**<br>
* name : Junichi Kato<br>
* email : <a href="mailto:j5ik2o@gmail.com" target="_blank">j5ik2o@gmail.com</a><br>
*<br>
* blog : <a href="http://d.hatena.ne.jp/j5ik2o/" target="_blank">http://d.hatena.ne.jp/j5ik2o/</a><br>
*<br>
* commiting projects :<br>
* <a href="http://jiemamy.org/" target="_blank">http://jiemamy.org/</a><br>
* <a href="http://s2chronos.sandbox.seasar.org/" target="_blank">http://s2chronos.sandbox.seasar.org/</a><br>
* <a href="http://s2config.sandbox.seasar.org/" target="_blank">http://s2config.sandbox.seasar.org/</a><br>
*/<br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</div></div></blockquote></div><br>