There are some cases where I would like to automatically retry a transaction. Specifically, if a database deadlock, network error, or other transient error occurs, I would like the system to automatically resubmit a request. Unfortunately, I don't see how to easily do this with JSF.  One naive implementation I tried was to put a filter that automatically loops on transient errors (some number of times). Unfortunately, I think the FacesContext has already been reset by this point so that the second request is essentially just a page refresh. Does anyone have any ideas on how to do this? I feel that a robust enterprise level application should support auto-retries so I'm a bit surprised if there isn't a relatively straightforward way to do this but I couldn't find anything by searching the newsgroups.

Reply via email to