PDA

View Full Version : struts adapter & HttpSessionContinuationFlowExecutionSto



jocsch
Apr 22nd, 2005, 10:14 AM
Hey guys,
am I missing something or does the struts adapter lack the possibility to use continuationsupport. I would expect it at as property of the FlowAction in the struts-action. But going through the code there is only a hook for the flowId.

Any other way to use continuations? Or do I have to subclass FlowAction?

Keith Donald
Apr 22nd, 2005, 10:32 AM
Well, ideally, we need to add this. Maybe you could help us out here :-)

Just like flowId can be specified in the FlowActionMapping, we should allow a text encoding of the execution storage strategy: e.g "session", "sessionContinuation", or
"clientContinuation". We can then key off those in the createFlowExecutionManager factory method of FlowAction to set the right strategy.

Keith Donald
Apr 22nd, 2005, 10:46 AM
Im on a roll today. Just added this.

See the "storage" property of FlowActionMapping.

jocsch
Apr 23rd, 2005, 07:51 AM
Thanks keith. I had already setup up everything to have a look into it but you were too fast for me.

I'll call it luck ;-)

jocsch
Apr 23rd, 2005, 03:50 PM
BTW, there is another one in the row of missing struts adapter features: FlowExecutionListeners

I would implement it but I'm a little bit scared about the possibility of having multiple listeners declared in the struts-config. How does struts handle this?
Second issue on this is the origin of the listeners. It would be quite handy to have them looked up in the application context, or?
I would simply use the applicationcontext retrieved in the templateAction for this purpose but looking through the code I see a lot of helpers and utility methods so I am not sure if there is another (prefered) way to do so.

Greetings,
Markus

jocsch
Apr 24th, 2005, 12:13 PM
I added a simple listener support which only can register one listener per flow. See SPR-902 in jiira.