Hide Forgot
Date of First Response: 2008-04-02 04:56:27 project_key: SOA Platform JIRA for project JIRA: JBESB-1631
Link: Added: This issue depends JBESB-1631
Will get a test case for you.
Attachment: Added: jboss-esb.xml
Attachment: Added: MyScheduledActionMsgComposer.java
Len, I have attached the modifications I made to the scheduled_services quickstart to reproduce this issue. Hopefully you can get an idea from this for a better test :) I modified the composer to selectively throw a RuntimeException/Error during the processing, in this case it attempts to break each thread in turn. If it succeeds then the processing will eventually stop, if it has been fixed then you will see messages such as the following "compose a message on DefaultQuartzScheduler_Worker-1 while looking for -9" where the running worker thread number is lower than the one being searched for.
I'll convert this testcase to fit our testing framework
This test does fail with the GA bits: </my_scheduled_listener> 12:41:27,795 INFO [STDOUT] throwing an error 12:41:27,795 ERROR [STDERR] Exception in thread "DefaultQuartzScheduler_Worker-0" 12:41:27,795 ERROR [STDERR] java.lang.Error: Thrown Error 12:41:27,796 ERROR [STDERR] at org.jboss.soa.esb.samples.quickstart.scheduler.MyScheduledActionMsgComposer.composeMessage(MyScheduledActionMsgComposer.java:52) 12:41:27,796 ERROR [STDERR] at org.jboss.soa.esb.listeners.ScheduleListener.onSchedule(ScheduleListener.java:118) 12:41:27,796 ERROR [STDERR] at org.jboss.soa.esb.schedule.ScheduleProvider$ESBScheduledJob.execute(ScheduleProvider.java:217) 12:41:27,796 ERROR [STDERR] at org.quartz.core.JobRunShell.run(JobRunShell.java:203) 12:41:27,796 ERROR [STDERR] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 12:41:27,972 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. And runs with the CP01 bits.