|
[
Permalink
| « Hide
]
Erwin Vervaet added a comment - 05/Nov/06 02:49 AM
See also http://www.ervacon.com/products/swf/tips/tip2.html
After some discussion we decided to change the default values for maxConversations and maxContinuations. The defaults are now:
maxConversations = 5 maxContinuations = 30 Although this is theoretically not backwards compatible, it is unlikely that this will effect any users in practice. The benefits of changing to these "conservative" defaults, mainly to avoid DoS attacks, outweighs the downside of the (theoretical) incompatibility. I've added setMaxConversations and setMaxContinuations methods to FlowExecutorFactoryBean to allow easy configuration of those properties of the ConversationManager and ContinuationFlowExecutionRepository respectively.
Ben, we also need support for directly setting maxConversations and maxContinuations in the SWF config XSD. Can you add that?
Keith and I discussed this and we feel the config XML should look like this: <flow:executor id="..." registry-ref="..."> <flow:repository type="continuation" max-conversations="1" max-continuations="30" conversation-manager-ref="myManager"/> </flow:executor> So we have a new <flow:repository> sub-element of the <flow:executor> element. This element has 4 possible attributes: 1) type (mandatory) - same as repository-type attribute of <flow:executor> - if you specify a <flow:repository> element, it's illegal to use the repository-type attribute on the containing <flow:executor> elemnt - the repository-type attribute remains as is for convenient use when you don't want to configure the repository explicitly 2) max-conversations (optional) - maps to setMaxConversations in FlowExecutorFactoryBean - it's illegal to us this when you're also using conversation-manager-ref 3) max-continuations (optional) - maps to setMaxContinuations in FlowExecutorFactoryBean - only usefull when type==continuations 4) conversation-manager-ref (optional) - maps to setConversationManager in FlowExecutorFactoryBean This also alligns the functionality of the FlowExecutorFactoryBean and the SWF config XSD. If you have any question, let me know! |
||||||||||||||||||||||||||||||||||||||