https://www.zkoss.org/_w/index.php?title=Small_Talks/2010/March/How_To_Run_ZK_With_Terracotta&feed=atom&action=history
Small Talks/2010/March/How To Run ZK With Terracotta - Revision history
2024-03-28T19:48:40Z
Revision history for this page on the wiki
MediaWiki 1.35.1
https://www.zkoss.org/_w/index.php?title=Small_Talks/2010/March/How_To_Run_ZK_With_Terracotta&diff=36514&oldid=prev
Samchuang: /* Setup Steps */
2013-03-22T05:03:50Z
<p><span dir="auto"><span class="autocomment">Setup Steps</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 05:03, 22 March 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l45" >Line 45:</td>
<td colspan="2" class="diff-lineno">Line 45:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div> <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></system-config></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></system-config></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"><listener></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> <listener-class>org.zkoss.zkplus.cluster.ClusterSessionPatch</listener-class></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></listener></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></source></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></source></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>
Samchuang
https://www.zkoss.org/_w/index.php?title=Small_Talks/2010/March/How_To_Run_ZK_With_Terracotta&diff=13274&oldid=prev
Char: /* Introduction */
2010-12-02T04:40:50Z
<p><span dir="auto"><span class="autocomment">Introduction</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 04:40, 2 December 2010</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l6" >Line 6:</td>
<td colspan="2" class="diff-lineno">Line 6:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Introduction ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Introduction ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>By leveraging services offered by Terracotta, a clustering software for Java, ZK applications have an additional way<ref>ZK is clustering ready for any Web server supporting clustering, including but not limited to, [[Small_Talks/2007/April/How_to_Run_ZK_on_Apache_%2B_Tomcat_clustering,_Part_I | Tomcat]], [[<del class="diffchange diffchange-inline">How-Tos</del>/<del class="diffchange diffchange-inline">Installation</del>/<del class="diffchange diffchange-inline">How_to_Integrate_ZK_with_Google_App_Engine </del>| Google App Engine]], and [[Small_Talks/2010/January/Deploying_a_ZK_application_on_Amazon_EC2_using_CloudFoundry | Amazon EC2]].</ref> to be scaled to large virtualized environments and clouds. As a proof of concept, we'll run a ZK demo application on two Tomcats connected to a single Terracotta server on the same machine and demonstrate how to run ZK with Terracotta.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>By leveraging services offered by Terracotta, a clustering software for Java, ZK applications have an additional way<ref>ZK is clustering ready for any Web server supporting clustering, including but not limited to, [[Small_Talks/2007/April/How_to_Run_ZK_on_Apache_%2B_Tomcat_clustering,_Part_I | Tomcat]], [[<ins class="diffchange diffchange-inline">ZK_Installation_Guide</ins>/<ins class="diffchange diffchange-inline">Setting_up_Servers</ins>/<ins class="diffchange diffchange-inline">Google_App_Engine </ins>| Google App Engine]], and [[Small_Talks/2010/January/Deploying_a_ZK_application_on_Amazon_EC2_using_CloudFoundry | Amazon EC2]].</ref> to be scaled to large virtualized environments and clouds. As a proof of concept, we'll run a ZK demo application on two Tomcats connected to a single Terracotta server on the same machine and demonstrate how to run ZK with Terracotta.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>-----</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>-----</div></td></tr>
</table>
Char
https://www.zkoss.org/_w/index.php?title=Small_Talks/2010/March/How_To_Run_ZK_With_Terracotta&diff=12910&oldid=prev
Char: /* Introduction */
2010-11-30T04:24:41Z
<p><span dir="auto"><span class="autocomment">Introduction</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 04:24, 30 November 2010</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l6" >Line 6:</td>
<td colspan="2" class="diff-lineno">Line 6:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Introduction ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Introduction ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>By leveraging services offered by Terracotta, a clustering software for Java, ZK applications have an additional way<ref>ZK is clustering ready for any Web server supporting clustering, including but not limited to, [[<del class="diffchange diffchange-inline">How to Run ZK on Apache + Tomcat clustering</del>, <del class="diffchange diffchange-inline">Part I </del>| Tomcat]], [[How-Tos/Installation/How_to_Integrate_ZK_with_Google_App_Engine | Google App Engine]], and [[Deploying_a_ZK_application_on_Amazon_EC2_using_CloudFoundry | Amazon EC2]].</ref> to be scaled to large virtualized environments and clouds. As a proof of concept, we'll run a ZK demo application on two Tomcats connected to a single Terracotta server on the same machine and demonstrate how to run ZK with Terracotta.</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>By leveraging services offered by Terracotta, a clustering software for Java, ZK applications have an additional way<ref>ZK is clustering ready for any Web server supporting clustering, including but not limited to, [[<ins class="diffchange diffchange-inline">Small_Talks/2007/April/How_to_Run_ZK_on_Apache_%2B_Tomcat_clustering</ins>,<ins class="diffchange diffchange-inline">_Part_I </ins>| Tomcat]], [[How-Tos/Installation/How_to_Integrate_ZK_with_Google_App_Engine | Google App Engine]], and [[<ins class="diffchange diffchange-inline">Small_Talks/2010/January/</ins>Deploying_a_ZK_application_on_Amazon_EC2_using_CloudFoundry | Amazon EC2]].</ref> to be scaled to large virtualized environments and clouds. As a proof of concept, we'll run a ZK demo application on two Tomcats connected to a single Terracotta server on the same machine and demonstrate how to run ZK with Terracotta.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>-----</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>-----</div></td></tr>
</table>
Char
https://www.zkoss.org/_w/index.php?title=Small_Talks/2010/March/How_To_Run_ZK_With_Terracotta&diff=12909&oldid=prev
Char: /* See Also */
2010-11-30T04:19:46Z
<p><span dir="auto"><span class="autocomment">See Also</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 04:19, 30 November 2010</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l74" >Line 74:</td>
<td colspan="2" class="diff-lineno">Line 74:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== See Also ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== See Also ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>#[http://www.zkoss.org/forum/listComment/10850 ZK Clustering] -- from ZK forum</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>#[http://www.zkoss.org/forum/listComment/10850 ZK Clustering] -- from ZK forum</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>#[[How to Run ZK on Apache + Tomcat clustering, Part I]]</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>#[[<ins class="diffchange diffchange-inline">Small_Talks/2007/April/How_to_Run_ZK_on_Apache_%2B_Tomcat_clustering,_Part_I|</ins>How to Run ZK on Apache + Tomcat clustering, Part I]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>#[[How to Run ZK on Apache + Tomcat clustering, Part II]]</div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>#[[<ins class="diffchange diffchange-inline">Small_Talks/2007/May/How_to_Run_ZK_on_Apache_%2B_Tomcat_clustering,_Part_II|</ins>How to Run ZK on Apache + Tomcat clustering, Part II]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>#[http://www.terracotta.org/documentation/betadocs/beta-documentation-9.html#405930024_pgfId-1010089 Clustering Web Applications with Terracotta] -- from Terracotta official site</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>#[http://www.terracotta.org/documentation/betadocs/beta-documentation-9.html#405930024_pgfId-1010089 Clustering Web Applications with Terracotta] -- from Terracotta official site</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>#[http://www.terracotta.org/documentation/ga/product-documentation-11.html Web Sessions Express Installation] -- from Terracotta official site</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>#[http://www.terracotta.org/documentation/ga/product-documentation-11.html Web Sessions Express Installation] -- from Terracotta official site</div></td></tr>
</table>
Char
https://www.zkoss.org/_w/index.php?title=Small_Talks/2010/March/How_To_Run_ZK_With_Terracotta&diff=7429&oldid=prev
Elton776: moved Small Talks/How To Run ZK With Terracotta to Small Talks/2010/March/How To Run ZK With Terracotta
2010-09-20T07:59:40Z
<p>moved <a href="/wiki/Small_Talks/How_To_Run_ZK_With_Terracotta" class="mw-redirect" title="Small Talks/How To Run ZK With Terracotta">Small Talks/How To Run ZK With Terracotta</a> to <a href="/wiki/Small_Talks/2010/March/How_To_Run_ZK_With_Terracotta" title="Small Talks/2010/March/How To Run ZK With Terracotta">Small Talks/2010/March/How To Run ZK With Terracotta</a></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 07:59, 20 September 2010</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
Elton776
https://www.zkoss.org/_w/index.php?title=Small_Talks/2010/March/How_To_Run_ZK_With_Terracotta&diff=6552&oldid=prev
Elton776: /* Demo */
2010-09-14T02:35:47Z
<p><span dir="auto"><span class="autocomment">Demo</span></span></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 02:35, 14 September 2010</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l22" >Line 22:</td>
<td colspan="2" class="diff-lineno">Line 22:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Demo ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Demo ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><gflash width="600" height="250"><del class="diffchange diffchange-inline">http://docs.zkoss.org/images/9/93/</del>Terracotta_share_session.swf</gflash></div></td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><gflash width="600" height="250">Terracotta_share_session.swf</gflash></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>A ZK demo application running on two Tomcats, sharing session data through Terracotta.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>A ZK demo application running on two Tomcats, sharing session data through Terracotta.</div></td></tr>
</table>
Elton776
https://www.zkoss.org/_w/index.php?title=Small_Talks/2010/March/How_To_Run_ZK_With_Terracotta&diff=5575&oldid=prev
Elton776: Created page with '{{Template:Smalltalk_Author| |author=Peter Kuo, Engineer, Potix Corporation |date=March 31, 2010 |version=ZK 5 }} == Introduction == By leveraging services offered by Terracotta…'
2010-09-10T07:06:38Z
<p>Created page with '{{Template:Smalltalk_Author| |author=Peter Kuo, Engineer, Potix Corporation |date=March 31, 2010 |version=ZK 5 }} == Introduction == By leveraging services offered by Terracotta…'</p>
<p><b>New page</b></p><div>{{Template:Smalltalk_Author|<br />
|author=Peter Kuo, Engineer, Potix Corporation<br />
|date=March 31, 2010<br />
|version=ZK 5<br />
}}<br />
<br />
== Introduction ==<br />
By leveraging services offered by Terracotta, a clustering software for Java, ZK applications have an additional way<ref>ZK is clustering ready for any Web server supporting clustering, including but not limited to, [[How to Run ZK on Apache + Tomcat clustering, Part I | Tomcat]], [[How-Tos/Installation/How_to_Integrate_ZK_with_Google_App_Engine | Google App Engine]], and [[Deploying_a_ZK_application_on_Amazon_EC2_using_CloudFoundry | Amazon EC2]].</ref> to be scaled to large virtualized environments and clouds. As a proof of concept, we'll run a ZK demo application on two Tomcats connected to a single Terracotta server on the same machine and demonstrate how to run ZK with Terracotta.<br />
<br />
-----<br />
<references/><br />
<br />
== More on Terracotta ==<br />
Terracotta is an open source JVM-level clustering software for Java. It delivers clustering as a run-time infrastructure service, which simplifies the task of clustering a Java application immensely, by effectively clustering the JVM underneath the application, instead of clustering the application itself. Terracotta for Web Sessions allows users to access session data coherently and reliably on the Terracotta server(s).<br />
<br />
== Test Environment ==<br />
#Tomcat 6<br />
#ZK Demo with ZK 5<br />
#Terracotta 3.2.1 beta<br />
#Windows 2003R2<br />
#JDK 1.6<br />
<br />
== Demo ==<br />
<gflash width="600" height="250">http://docs.zkoss.org/images/9/93/Terracotta_share_session.swf</gflash><br />
<br />
A ZK demo application running on two Tomcats, sharing session data through Terracotta.<br />
<br />
== Setup Steps ==<br />
Follow the document from Terracotta official site [http://www.terracotta.org/documentation/ga/product-documentation-11.html Web Sessions Express Installation]<br />
<br />
Add the following snippet to context.xml in Tomcat 6.<br />
<source lang="xml"><br />
<Valve className="org.terracotta.session.TerracottaTomcat60xSessionValve" tcConfigUrl="localhost:9510"/><br />
</source><br />
<br />
Add the following declaration to catalina.bat in Tomcat 6 to prevent out of memory error.<br />
<source lang="xml"><br />
set JAVA_OPTS="-XX:PermSize=512M"<br />
</source><br />
<br />
Add the following code to zk.xml to enable session serialization.<br />
<source lang="xml"><br />
<system-config><br />
<disable-event-thread/><br />
<ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class><br />
</system-config><br />
</source><br />
<br />
<br />
<br />
Write a test zul to see if session data is shared by two Tomcats.<br />
<source lang="xml"><br />
<window title="Share same session in two tomcat" border="normal" width="300px"><br />
<button label="set time in session" onClick='session.setAttribute("insession",(new Date()).toString());state.value="already set time"' /><br />
<button label="get time in session" onClick='result.value=session.getAttribute("insession")' /><br />
<vbox><br />
<label id="state" value=""/><br />
<label id="result" value=""/><br />
</vbox><br />
</window><br />
</source><br />
<br />
start Terracotta server.<br />
<br />
start application server.<br />
<br />
== Summary ==<br />
<br />
Through this simple environment setup and testing, we've demonstrated that ZK application running on multiple servers can share session data through the Terracotta server reliably and efficiently. This article serves as a proof of concept for how ZK can be integrated to run with Terracotta and leverage its scalability. <br />
<br />
== Use Case ==<br />
If you have a use case to share with us running ZK on Terracotta, please contact us at info@zkoss.org<br />
<br />
== See Also ==<br />
#[http://www.zkoss.org/forum/listComment/10850 ZK Clustering] -- from ZK forum<br />
#[[How to Run ZK on Apache + Tomcat clustering, Part I]]<br />
#[[How to Run ZK on Apache + Tomcat clustering, Part II]]<br />
#[http://www.terracotta.org/documentation/betadocs/beta-documentation-9.html#405930024_pgfId-1010089 Clustering Web Applications with Terracotta] -- from Terracotta official site<br />
#[http://www.terracotta.org/documentation/ga/product-documentation-11.html Web Sessions Express Installation] -- from Terracotta official site<br />
<br />
[[Category:Small Talk]]<br />
[[Category:Apache]]<br />
[[Category:Deployment]]<br />
{{Template:CommentedSmalltalk_Footer|<br />
|name=Potix Corporation <br />
}}</div>
Elton776