Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Transactions

  1. #11
    Join Date
    May 2005
    Location
    Fallbrook, CA
    Posts
    22

    Default Where best to catch the NoSuchFlowExecutionException

    I get a NoSuchFlowExecutionException occasionally, not because the flow has ended and not because I'm using the back button. It appears that it happens when the session has expired. Therefore, I'd like to catch it and take the user to a page that explains that their session may have ended and give them the opportunity to start a new flow.

    Where and how is the best place to do this?

  2. #12
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    When the session expires, all ongoing FlowExecutions in it will also expire so it's normal that you get NoSuchFlowExecutionException in that case.
    At this moment SWF doesn't have its own exception handling system, so it's not (yet) possible to have exception handling rules 'per flow'. However, you have a few global options:

    * Exception page definitions in web.xml
    * A HandlerExceptionResolver in SpringMVC
    * Global exception forwards in Struts

    Erwin

Similar Threads

  1. HibernateTemplate and transactions
    By Simon Brunning in forum Data
    Replies: 4
    Last Post: Mar 9th, 2009, 12:37 AM
  2. Client Defined Transactions
    By haninaguib in forum Data
    Replies: 4
    Last Post: Oct 24th, 2005, 01:18 PM
  3. JDO Transactions and JUnit testing
    By markds75 in forum Data
    Replies: 2
    Last Post: Sep 17th, 2005, 01:46 AM
  4. Replies: 1
    Last Post: Mar 23rd, 2005, 05:32 AM
  5. Replies: 4
    Last Post: Mar 15th, 2005, 05:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •