Reputation: 1007
Is there a way to use Spring web flow to store flow data into persistent storage instead of sticking it to http session. I'm looking to find a way to store web flow data in some persistent storage. Each time request comes spring loads the flow data and when response is sent back flow data is stored back and later retrieved when request comes back again. Reason for this is my application is running in multiple data centers and support transactions around 500tps and I don't want to manage session data across different data centers.
Upvotes: 1
Views: 548
Reputation: 3198
I think what you are looking for are implementations of FlowExecutionListenerAdapter
Out of the box SWF supports HibernateFlowExecutionListener and JpaFlowExecutionListener. If you want to use another db store you'd have to implement your own FlowExecutionListenerAdapter.
see the swf config here: Spring Web Flow and Spring MVC URL 404 to see how it is initalized
Note: interface ends with 'Adapter'
impl classes end with 'Listener'
Upvotes: 1