Desktops, pages and components are serializables, so you can use the clustering feature supported by the Web server without implementing this interface. In other words, you need to implement this interface only if you want to provide an application-specific way to re-create back.
If you want to use the Web server's clustering feature, what you need to do is to specify {@link org.zkoss.zk.ui.http.SerializableUiFactory}as the UI factory in zk.xml as follows (and forget {@link FailoverManager}).
<system-config> <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class> </system-config>
The recovery involves two phases:
|
|