[opencms-dev] Missing element that calls a customized EventListener

Andras Balogh andras at reea.net
Wed Mar 23 17:31:00 CET 2005


Hello,


Thomas Maerz wrote:

>"Martin Lehnert" <martin.lehnert at hannecke-its.de> writes:
>
>  
>
>>I also stumbled over a class of the TemplateOne-module
>>(CmsTemplateParts) which is implementing the Listener-interface and is
>>used by other classes of the module, but when does the system call one
>>of those classes so that the Listener can register itself?
>>    
>>
>
>
>,----[ CmsTemplateParts.java ]
>| // add an event listener
>| OpenCms.addCmsEventListener(this);
>`----
>
>Maybe register your Listener in a JSP,
>that is requested for sure by a user.
>
>I couldn't find a way to add listeners on startup, too.
>  
>

For this we have created our own small servlet and in the init() method 
we registered our listnerer.
The servlet was called on startup by Tomcat and we made sure to be 
called *after* the OpenCms servlet.

>At least it was possible with OpenCms 5.0.
>
>Regards,
>Thomas
>  
>

Best regards,
Andras Balogh.




More information about the opencms-dev mailing list