Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ClusterSessionPatch.java
 
 	Purpose:
 		
 	Description:
 		
 	History:
 		Jun 27, 2011 4:00:01 PM, Created by jimmy
 
Copyright (C) 2011 Potix Corporation. All Rights Reserved.
This program is distributed under GPL Version 3.0 in the hope that
it will be useful, but WITHOUT ANY WARRANTY.
*/
package org.zkoss.zkplus.cluster;

This listener is used with Weblogic clustering server or cloud environment (such as Google App Engine).

then you have to add following lines in application's WEB-INF/zk.xml:


  <listener>
  <listener-class>org.zkoss.zkplus.cluster.ClusterSessionPatch</listener-class>
 </listener>
 

Author(s):
jimmy
Since:
5.0.8
public class ClusterSessionPatch implements ExecutionCleanup {
	public void cleanup(Execution execExecution parentList errs)
			throws Exception {
		Session sess = exec.getSession();
		//enforce GAE to write session
		//enforce Weblogic to sync session
		if (sess != null)
	}
New to GrepCode? Check out our FAQ X