开发者

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

开发者 https://www.devze.com 2023-03-06 13:08 出处:网络
I want to use JSF2.0 in cluster environment. I\'m building a JPA2.0 + Spring 3.0 + JSF2.0 stack. I know how to replicate session scoped beans. But how to replicate view scoped beans? I plugged view sc

I want to use JSF2.0 in cluster environment. I'm building a JPA2.0 + Spring 3.0 + JSF2.0 stack. I know how to replicate session scoped beans. But how to replicate view scoped beans? I plugged view scope into 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 JEE6 server - put a bean into the view map (FacesContext.getCurrentInstance().getViewRoot().getViewMap())

The problem is : I've opened index.xhtml on node 1. View-scoped bean was created. I clicked something and the postback req开发者_StackOverflow社区uest got onto node 2 - where the view doesn't exist.

Is it possible to have this in cluster environment? Should I use only session and request scope?

On the other hand JSF view-state may not work properly in cluster environment. How to use JSF on cluster?

0

精彩评论

暂无评论...
验证码 换一张
取 消