[jboss-dev-forums] [Design of JBoss jBPM] - Re: Failure handling

tom.baeyens@jboss.com do-not-reply at jboss.com
Fri Aug 3 11:29:26 EDT 2007


the DLQ could be implemented in the JobExecutor MDB, no ? 

but you need to know in the bean somehow that this is the last retry that JMS is going to give the message delivery.

if you then do a 

try {
  |   // continue asynchronously
  | } catch (Exception e) {
  |   if (thisIsTheLastAttempt()) {
  |     signalInNewTransaction(execution.getId(), "failure);
  |   }
  | }

execution would need to be reloaded in the new transaction method, but i think this could work.

would it make sense to update the MDB in that sense ?

can you know in JMS if this is the last retry that JMS is going to give the MDB to deliver the message ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070678#4070678

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070678



More information about the jboss-dev-forums mailing list