[jboss-dev-forums] [Design of JBoss ESB] - Re: Failover MessageRedelivery
beve
do-not-reply at jboss.com
Mon Sep 10 04:33:55 EDT 2007
Ok, now I get it. The current redelivery service deals with redelivery between ESB calls.
Our concern is scheduling redelivery/re-executing of a service upon an error in the action pipleline. An example of this would be a call to a web service that is temporarily unavailable.
Our current solution is to save the incoming Message object to the MessageStore, as the first action in the action pipeline. Upon sucessful completion of the pipeline the message will be removed.
If an exception occurs in the pipeline an exception handler will retrieve the message from the message store, re-add the retrieved message, with a different classification, to the MessageStore. The classification will match the classification that the redelivery service is configured to look for.
To get this to work I need to make a few minor changes.
I added a method to RedeliverStore that takes a classification as a parameter:
| public interface RedeliverStore extends MessageStore {
| ...
| public boolean redeliver(URI uid,String classification) throws MessageStoreException;
|
I'd also like to make the classification on RedeliverEventMessageComposer a configuratble property which would save us from having to create our own composer.
Does this look alright? Does anyone have a better way on doing this?
We do plan to build an error handling process that will take care of automatic redelivery and where we will also be able to manually trigger redelivery from tasks in jbpm, but our time schedule will not allow this at the moment. This is really just an effort to get automatic redelivery to work with the least amout of effort and buy us some time.
Thanks,
Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082498#4082498
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082498
More information about the jboss-dev-forums
mailing list