WebLogic Cluster
From Documentation
Before You Start
You have to configure the following setting for ZK and Weblogic.
zk.xml
- Turn on Serializable UI Factory for ZK, please refer to this documentation.
<zk>
<system-config>
<ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
</system-config>
<!-- clustering environment, since ZK 5.0.8-->
<listener>
<listener-class>org.zkoss.zkplus.cluster.ClusterSessionPatch</listener-class>
</listener>
</zk>
weblogic.xml
- Add a weblogic.xml under XXX/WEB-INF folder(XXX is like ZKsandbox in the war file)
For example,
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
"http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
<session-descriptor>
<session-param>
<param-name>PersistentStoreType</param-name>
<param-value>replicated</param-value>
</session-param>
</session-descriptor>
</weblogic-web-app>
For Weblogic version 12c
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.5/weblogic-web-app.xsd">
<wls:session-descriptor>
<wls:persistent-store-type>replicated</wls:persistent-store-type>
</wls:session-descriptor>
</wls:weblogic-web-app>
As mentioned in Weblogic's document
replicated — Same as memory, but session data is replicated across the clustered servers.
Setting up Weblogic Clusters
After those things done above, please follow the official document to set up a Weblogic Cluster Server here.
Version History
Version | Date | Content |
---|---|---|
5.0.8 | June 2011 | Add ClusterSessionPatch listener to zk.xml for enforce Weblogic to write session. |