Great, it worked!!
I have defined the /mvc/* prefix for all my controllers and the flows still reside on /* (as I now, there is no way for setting a custom prefix for flows as you suggested).
The SWF configuration would be like this:
And the OpenEntityManagerInViewFilter configuration would be like this:
<!-- Creates a flow executor in Spring, responsible for creating and executing flows -->
<flow:flow-executor id="flowExecutor" flow-registry="flowRegistry">
<flow:listener ref="jpaFlowExecutionListener" />
<!-- Listener for the JPA execution listener -->
<bean id="jpaFlowExecutionListener" class="org.springframework.webflow.persistence.JpaFlowExecutionListener">
<constructor-arg ref="entityManagerFactory" />
<constructor-arg ref="transactionManager" />
<!-- Load flow definitions and make them available to the flow executor -->
<flow:flow-location id="process-flow" path="/process/flows/process-flow.xml" />
<flow:flow-location id="phase1-flow" path="/process/flows/phase1/phase1-flow.xml" />
<!-- The FlowHandlerMapping helps DispatcherServlet to knowing that it should send flow requests to Spring Web Flow -->
<property name="flowRegistry" ref="flowRegistry" />
<!-- The FlowHandlerAdapter is equivalent to a Spring MVC controller in that it handles requests coming in for a flow and processes those requests -->
<property name="flowExecutor" ref="flowExecutor" />
I hope it helps anybody...
At the same time, though it works I don't like the solution at all because I don't like to use such pattern for controller's URLs, in my opinion is a little bit ugly (yes, I am too meticolous ). Would be nice to have a single point for configuring open session in view behaviour both for MVC and SWF, and I don't know if such configuration option exists...
Anyway thousand of thanks emil1, if I can't find my "perfect solution" I will do it your way .
Regards and have a nice weekend.