<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.5.1">
<TITLE>How To Setup a Cluster</TITLE>
</HEAD>
<BODY>
We are using OpenCMS balanced on 4 servers all pointing to one Oracle instance.<BR>
The only issue we've found is that, when publishing files on one server, the other instances are not notified of this and need their flexcaches cleaned. We solved this the simple way by creating a scheduled task which runs every hour and purges the flexcache.<BR>
We also prepared a different implementation based on JGroups which we will use in a future release. JGroups is a multicast-based infrastructure which allows autoconfiguration of nodes: as a server is initialized it automatically joins the network of other servers. We added an event listener which broadcasts a message whenever a server publishes something. On receiving this message the other servers clear their flexcaches.<BR>
<BR>
I believe the best solution, which we haven't had time to develop, would be to base the flexcache implementation on OSCache. OSCache can use two methods to broadcast cluster cache messages: JGroups or JMS (for application servers which provide this feature).<BR>
<BR>
I hope this helps.<BR>
<BR>
Tristan<BR>
<BR>
<BR>
</BODY>
</HTML>