On Jan 17, 2013, at 10:36 AM, Eugen Colesnicov <[email protected]> wrote:

> In the XWiki existing great technology -  custom EventListeners, which can
> execute, for example, on 'save page' event some script.
> Existing some nice examples of using this technology:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Title+Post+Processing+Using+Groovy
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Create+Object+with+Context+Data+EventListener
> 
> But, in the past, problem was, that your EventListeners cannot automatically
> start (for example if application server restarted). I know right now only
> one 'trick' - right a scheduler job, which every 5 minutes restarts
> EventListener. Here -
> http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial
> existing example of such job, but:
> 1) this is like a 'trick' - not a normal solution
> 2) existing troubles of writing such jobs for not qualified users (like me
> :) )
> 
> My question - at this moment, at the end of 4.x cycle, existing more
> comfortable solution of this problem?
> If not - do you have (this is question for developers) plans for the future
> to give for the users some instrument which can do it easy?

There is, see
http://extensions.xwiki.org/xwiki/bin/view/Extension/Create+Object+with+Context+Data+EventListener?viewer=comments#xwikicomment_1

The other option is to write it in Java too.

So to summarize, the recommended solution is to write listeners in Java. The 
next best solution is to use a Wiki Component:
http://extensions.xwiki.org/xwiki/bin/view/Extension/WikiComponent+Module

Thanks
-Vincent

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to