|
From: Keith D. <ke...@in...> - 2005-04-01 00:46:57
|
Seth,
Excellent idea.
If we extract an interface from the HttpServletExecutionManager, we get
something like:
public interface FlowExecutionStorage {
public FlowExecution loadFrom(Event inputEvent);
public void saveOrUpdate(FlowExecution flowExecution);
public void remove(FlowExecution flowExecution);
}
Or something like that. Erwin what do you think? Need to think about it
more. I imagine here the FlowExecutionStack would have to be reconstructed
from the Event parameters, for example: http request parameters, in an http
servlet environment. It also has to be rehydrated with services on
deserialization as well, including the FlowLocator and its
FlowExecutionListenerList.
Keith
-----Original Message-----
From: spr...@li...
[mailto:spr...@li...] On Behalf Of
Seth Ladd
Sent: Thursday, March 31, 2005 6:21 PM
To: spr...@li...
Subject: Re: [Springframework-developer] SWF - Creating HTTP sessions -
Feedback needed
On Thu, 31 Mar 2005 17:49:24 -0500, Keith Donald <ke...@in...>
wrote:
> Just thinking out loud here, but no, I don't think this would be too
> difficult to implement. There is potentially lot to serialize out on each
> request, though, particularly if you a flow execution that has spawned
many
> nested subflows.
>
> Methinks we could have custom tag that serializes the FlowExecutionStack
on
> each request. This would include serializing:
> - The ID of the flow execution (randomly generated guid)
> - The stack of IDs of all spawned flows, the top being the active flow and
> the rest any suspended parent flows (if the active flow is a subflow)
> - For each flow in the stack, everything in 'flow scope'.
Keith,
Sounds like there might be two Strategies here for storing the
FlowExecutionStack: HttpSession Strategy and HttpRequest Strategy.
The developer can then choose the strategy for their needs, as there
are good use cases for not requiring a session.
Seth
-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|