[opencms-dev] Clustering OpenCms 6.2.1

Cayetano hnzekto at gmail.com
Wed Jul 5 11:48:36 CEST 2006


Hi all,

I know that's a recurrent subject in the list, and also know that
exists the OCEE module from Alkacon which i haven't tested, and also
know about only one OpenCms can be used for editing content, by the
way, i've been deploying an HA/LB environment based on:

- Linux (CentOS)
- jdk 1.5.0
- Apache httpd 2.0.52
- 2 Tomcat 5.5.16
- mod_jk, apr, tomcat-native,...
- Oracle 9i

Something similar to:
http://www.pomegranate.de/en/OpenSource/OpenCMS/OpenCMS_Cluster.html

The cluster works fine, i've installed OpenCms in one of the nodes and
then just copy to the other node (changing some stuff about
host/ip/url and so on), and then, if you put the distributable
property in the OpenCms Context definition, the workplace crashes with
the typical non-serializable object exception, so i just added the
serializing needed in the following classes (ATM):

M src/org/opencms/configuration/CmsDefaultUserSettings.java
M src/org/opencms/db/CmsUserSettings.java
M src/org/opencms/file/CmsUser.java
M src/org/opencms/file/types/A_CmsResourceTypeFolderBase.java
M src/org/opencms/file/types/CmsResourceTypeBinary.java
M src/org/opencms/file/types/CmsResourceTypeFolder.java
M src/org/opencms/file/types/CmsResourceTypeFolderExtended.java
M src/org/opencms/file/types/CmsResourceTypeImage.java
M src/org/opencms/file/types/CmsResourceTypeJsp.java
M src/org/opencms/file/types/CmsResourceTypePlain.java
M src/org/opencms/file/types/CmsResourceTypePointer.java
M src/org/opencms/file/types/CmsResourceTypeUnknown.java
M src/org/opencms/file/types/CmsResourceTypeXmlContent.java
M src/org/opencms/file/types/CmsResourceTypeXmlPage.java
M src/org/opencms/workplace/CmsWorkplaceSettings.java
M src-modules/com/opencms/legacy/CmsResourceTypeXMLTemplate.java
M src-modules/org/opencms/editors/fckeditor/CmsFCKEditorConfiguration.java

And it seems it's mostly working, and i'm afraid after some more
testing i'll find new classes  which needs to be serialized, the
question is: ¿why is not included this little hack? ¿does OCEE resolv
that problems with serialized classes? ¿is anyone of you testing
similar environments and found similar problems?.

I'm asking because i don't want to maintain a little fork of core
classes to get it working on an env like explained.

Cheers,

Cayetano



More information about the opencms-dev mailing list