How to use JSF2.0 scope in a cluster environment?

I want to use JSF2.0 in a cluster environment. I am creating a stack of JPA2.0 + Spring 3.0 + JSF2.0 . I know how to replicate beans session. But how to replicate view scoped beans? I have included the viewport in Spring 3.0 from here http://cagataycivici.wordpress.com/2010/02/17/port-jsf-2-0s-viewscope-to-spring-3-0/

The idea is the same as in JS2.0 on a JEE6 server - put a bean in a view map ( FacesContext.getCurrentInstance().getViewRoot().getViewMap())

The problem is this: I opened index.xhtmlon node 1 . View-scopedbean. I clicked something and the request postbackgot to node 2 - where the view does not exist.

Is this possible in a cluster environment? Should I use only session and scope request?

On the other hand, JSF view state may not work correctly in a cluster environment. How to use JSF in a cluster?

+3
source share

All Articles