[jboss-user] [JBoss Seam] - Re: Call scheduled method from another scheduled method
motte79
do-not-reply at jboss.com
Mon Sep 24 10:50:39 EDT 2007
Hello !
Is this known as bug now ? Could anyone post the JIRA issue nbr/link ?
I've an similar problem: I try to implments a retry-mechanism for an asynchronous task. This is implemented as follows ..
The retry is not processed in an asynchron way as expected .. (?)
| @Stateless
| @AutoCreate
| @Name(AlertingEngineTask.NAME)
| public class AlertingEngineTaskBean implements AlertingEngineTask {
|
| ...........
|
| @Asynchronous
| public void recieve(Info info) {
| try {
|
| .........
|
| } catch (Throwable th) {
| retry (info);
| }
| }
|
| ...........
|
| private void retry(Info info) throws LogPermanentErrorsException {
| retry ++ ;
|
| if (retry > 4)
| throw new LogPermanentErrorsException();
| AlertingEngineTask task = (AlertingEngineTask)
| Component.getInstance(this.getClass(), ScopeType.EVENT, true);
| task.setRetry(getRetry());
| task.recieve(info);
| }
|
| }
|
I'm using seam 2.0.0.BETA1
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087976#4087976
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087976
More information about the jboss-user
mailing list