Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1059

Possibility to configure the lockTimeoutSeconds on the ConversationManager

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.5
    • Fix Version/s: None
    • Component/s: Core: Flow Executor
    • Labels:
      None

      Description

      While it is possible to set the maxConversations property on the FlowExecutor bean (which sets a property of the SessionBindingConversationManager) it is not possible to set the timeoutSeconds which configures the seconds it takes before the LockTimeoutException is thrown. So it would be nice to see something like below:

      <webflow:flow-executor id="flowExecutor">
      <webflow:flow-execution-repository max-executions="1" max-execution-snapshots="25" lock-timeout-seconds="15" />
      </webflow:flow-executor>

      The setting of the lock-timeout-seconds attribute will call the setter on the SessionBindingConversationManager in the createConversationManager-method of the FlowExecutorFactoryBean.

      With the current build it is only possible to do this programmatically.
      Thusly:
      SessionBindingConversationManager sbcm=(SessionBindingConversationManager)ExternalContextHolder.getExternalContext().getSessionMap().getAttribute("webflowConversationContainer");
      sbcm.setLockTimeoutSeconds(15);

        Attachments

          Activity

            People

            Assignee:
            kdonald Keith Donald
            Reporter:
            flume Jan Lievens
            Votes:
            17 Vote for this issue
            Watchers:
            16 Start watching this issue

              Dates

              Created:
              Updated: