wood burning stoves 2.0*
The moose likes Spring and the fly likes Spring Web Flow - How efficient is it? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Web Flow - How efficient is it?" Watch "Spring Web Flow - How efficient is it?" New topic
Author

Spring Web Flow - How efficient is it?

Harish V Gupta
Ranch Hand

Joined: Dec 17, 2011
Posts: 33
I was going through Spring Web Flow when I stopped and thought I would get this question of mine answered before I continue. Can anyone please tell me how efficient is Spring Web Flow and how much is it really used in real time projects?
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

What do you mean efficient? Spring makes solid frameworks that are well tested and this one is no exception. I rarely use this particular one but that that is mostly due to two reasons:

1. I have been doing more and more single page web applications lately which moves away from this paradigm.
2. Most of the JSP type applications I build are not really suited for Spring Web Flows sweet spot.

If you find your application meets the below criteria it may be a good fit for your project.

From the overview

http://www.springsource.org/spring-web-flow

Spring Web Flow is a Spring MVC extension that allows implementing the "flows" of a web application. A flow encapsulates a sequence of steps that guide a user through the execution of some business task. It spans multiple HTTP requests, has state, deals with transactional data, is reusable, and may be dynamic and long-running in nature.

The sweet spot for Spring Web Flow are stateful web applications with controlled navigation such as checking in for a flight, applying for a loan, shopping cart checkout, or even adding a confirmation step to a form. What these scenarios have in common is one or more of the following traits:

There is a clear start and an end point.
The user must go through a set of screens in a specific order.
The changes are not finalized until the last step.
Once complete it shouldn't be possible to repeat a transaction accidentally.
Spring Web Flow provides a declarative flow definition language for authoring flows on a higher level of abstraction. It allows it to be integrated into a wide range of applications without any changes (to the flow programming model) including Spring MVC, JSF, and even Portlet web applications. The following are common issues observed in stateful web applications with navigation requirements:

Visualizing the flow is very difficult.
The application has a lot of code accessing the HTTP session.
Enforcing controlled navigation is important but not possible.
Proper browser back button support seems unattainable.
Browser and server get out of sync with "Back" button use.
Multiple browser tabs causes concurrency issues with HTTP session data.
Spring Web Flow provides a solution to the above issues.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Web Flow - How efficient is it?
 
Similar Threads
popup form in spring
Spring book recomandation
[Spring Web Flow 2] Can Spring Web Flow work with Spring Web MVC?
Flowscope outside Spring Web Flow
Does Spring Web Flow 2 have role based authorization to execute flow feature?