Re: Issue with I_CmsEventListener in Clustered System
DAVID RODRIGUEZ MERINO via opencms-dev <[email protected]> Tue, 6 Feb 2024 08:04:35 +0000
| Newsgroups | gmane.comp.cms.opencms.devel |
|---|---|
| Message-ID | <DU0PR08MB748601C6406E092B9C4B735EA3462@DU0PR08MB7486.eurprd08.prod.outlook.com> |
You can call a JSP/java to send an event from master to slaves. Another option is pay the OCEE to Alkacon -- David Rodríguez Merino Área Web del Gabinete de Comunicación Vicerrectorado de Comunicación Universidad de Valladolid Edificio Rector Tejerina Plaza de Santa Cruz nº 6 47002 Valladolid Email: [email protected]<mailto:[email protected]> Email grupo: [email protected]<mailto:[email protected]> De: Chema Jiménez <[email protected]> Fecha: lunes, 5 de febrero de 2024, 8:47 Para: DAVID RODRIGUEZ MERINO <[email protected]>, [email protected] <[email protected]> Asunto: RE: Issue with I_CmsEventListener in Clustered System Hello David, Thank you for your response. That is an option, but what I really need to know is how I can send events to the slaves using the OpenCms API. Best regards. Chema Jiménez Flores. De: DAVID RODRIGUEZ MERINO <[email protected]> Enviado el: lunes, 05 de febrero de 2024 8:12 Para: [email protected] CC: Chema Jiménez <[email protected]> Asunto: RE: Issue with I_CmsEventListener in Clustered System 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 <[email protected]<mailto:[email protected]>> en nombre de Chema Jiménez via opencms-dev <[email protected]<mailto:[email protected]>> Enviado: jueves, 1 de febrero de 2024 8:46 Para: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> Cc: Chema Jiménez <[email protected]<mailto:[email protected]>> 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. _______________________________________________ This mail is sent to you from the opencms-dev mailing list To change your list options, or to unsubscribe from the list, please visit https://lists.opencms.org/mailman/listinfo/opencms-dev