[opencms-dev] Issue with I_CmsEventListener in Clustered System

DAVID RODRIGUEZ MERINO david.rodriguez.merino at uva.es
Mon Feb 5 08:11:58 CET 2024


Hi Chema

We use a table in database to save the changes in the master. The slaves read this table and do the changes in a task every 5 minutes. If you need more information contact me

Regards
________________________________
De: opencms-dev <opencms-dev-bounces at opencms.org> en nombre de Chema Jiménez via opencms-dev <opencms-dev at opencms.org>
Enviado: jueves, 1 de febrero de 2024 8:46
Para: opencms-dev at opencms.org <opencms-dev at opencms.org>
Cc: Chema Jiménez <chema.jimenez at sagasoluciones.com>
Asunto: [opencms-dev] Issue with I_CmsEventListener in Clustered System


Hello,



I have developed a class that implements I_CmsEventListener, and its events include [EVENT_RESOURCE_AND_PROPERTIES_MODIFIED, EVENT_RESOURCE_COPIED, EVENT_RESOURCE_CREATED, EVENT_RESOURCE_DELETED, EVENT_RESOURCE_MODIFIED, EVENT_RESOURCE_MOVED]. If a resource meets a certain condition, another class is executed.



The problem is that in a "cluster" system (with two slave nodes), when editing a resource on the admin node, the I_CmsEventListener class runs only on the admin node and not on the other nodes.



How can I ensure that the I_CmsEventListener class executes on all nodes when modifying a resource?



Thank you very much.

Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20240205/5328449c/attachment.htm>


More information about the opencms-dev mailing list