WebLogic Cluster"

From Documentation
Line 9: Line 9:
 
<ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
 
<ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class>
 
</system-config>
 
</system-config>
 +
<!-- clustering environment, since ZK 5.0.8-->
 +
<listener>
 +
<listener-class>org.zkoss.zkplus.cluster.ClusterSessionPatch</listener-class>
 +
</listener>
 
</zk>
 
</zk>
 
</source>
 
</source>
 +
 +
== weblogic.xml ==
 +
* Add a weblogic.xml under XXX/WEB-INF folder(XXX is like '''ZKsandbox''' in the war file)
 +
For example,
 +
<source lang="xml">
 +
<!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>
 +
</source>
 +
As mentioned in [http://download.oracle.com/docs/cd/E12840_01/wls/docs103/webapp/weblogic_xml.html#wp1071982 Weblogic's document]
 +
'''replicated''' — Same as memory, but session data is replicated across the clustered servers.
 +
 
= Setting up Weblogic Clusters=
 
= Setting up Weblogic Clusters=
 
After those things done above, please follow the official document to set up a Weblogic Cluster Server [http://download.oracle.com/docs/cd/E12840_01/wls/docs103/cluster/setup.html here].
 
After those things done above, please follow the official document to set up a Weblogic Cluster Server [http://download.oracle.com/docs/cd/E12840_01/wls/docs103/cluster/setup.html here].

Revision as of 04:04, 29 June 2011


Before You Start

You have to configure the following setting for ZK and Weblogic.

zk.xml

<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>

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.



Last Update : 2011/06/29

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.