[xwiki-devs] notifications "start configuration"?
Hello xwikiers, the page at http://platform.xwiki.org/xwiki/bin/view/DevGuide/Notifications is really nice and shows a real nice pearl of XWiki. I did similarly and my notifier seems to run smoothly. I would like to know, however, what is the way to make sure that a notifier (an implementation of XWikiDocChangeNotificationInterface) is running at every restart of our XWiki. I tried to add the fullname of either the velocity (the "starter") or the Groovy pages into that line and restarting but my notifier didn't seem to have been running after that. What is the correct way? It should definitely be documented at the pircbot page. thanks in advance paul
Erm, is this a dumb question? I really just want to automate xwiki.getXWiki().getNotificationManager().addGeneralRule(this.rule); The notification page field of XWikiPreferences seems to be expecting XWikiActionNotificationInterface while we implement XWikiDocChangeNotificationInterface as in the pircbot tutorial. Is there no way except a wget in the startup script to actually trigger the listener to be activated? thanks in advance paul Le 21-nov.-08 à 00:26, Paul Libbrecht a écrit :
Hello xwikiers,
the page at http://platform.xwiki.org/xwiki/bin/view/DevGuide/Notifications is really nice and shows a real nice pearl of XWiki.
I did similarly and my notifier seems to run smoothly.
I would like to know, however, what is the way to make sure that a notifier (an implementation of XWikiDocChangeNotificationInterface) is running at every restart of our XWiki.
I tried to add the fullname of either the velocity (the "starter") or the Groovy pages into that line and restarting but my notifier didn't seem to have been running after that.
What is the correct way? It should definitely be documented at the pircbot page.
thanks in advance
paul_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
This is decribed in the last step (4) of the tutorial : "Creating a Scheduler job so that the Bot is restarted automatically if the server is restarted for example". This job is called every 5 min in the example which means that the bot can be offline for 5 min at most. JV. 2008/11/21 Paul Libbrecht <[email protected]>:
Erm,
is this a dumb question?
I really just want to automate
xwiki.getXWiki().getNotificationManager().addGeneralRule(this.rule); The notification page field of XWikiPreferences seems to be expecting XWikiActionNotificationInterface while we implement XWikiDocChangeNotificationInterface as in the pircbot tutorial. Is there no way except a wget in the startup script to actually trigger the listener to be activated?
thanks in advance
paul
Le 21-nov.-08 à 00:26, Paul Libbrecht a écrit :
Hello xwikiers,
the page at http://platform.xwiki.org/xwiki/bin/view/DevGuide/Notifications is really nice and shows a real nice pearl of XWiki.
I did similarly and my notifier seems to run smoothly.
I would like to know, however, what is the way to make sure that a notifier (an implementation of XWikiDocChangeNotificationInterface) is running at every restart of our XWiki.
I tried to add the fullname of either the velocity (the "starter") or the Groovy pages into that line and restarting but my notifier didn't seem to have been running after that.
What is the correct way? It should definitely be documented at the pircbot page.
thanks in advance
paul_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
5 minutes is definitely too much. The best approximation I found is: - insert a wget at the end of the start script - insert "platform monitor" as notification page itself creating that (the notification page seems to be called at all accesses) Oh, and is the scheduler anything else than a crontab? paul Le 28-nov.-08 à 13:01, Jean-Vincent Drean a écrit :
This is decribed in the last step (4) of the tutorial : "Creating a Scheduler job so that the Bot is restarted automatically if the server is restarted for example". This job is called every 5 min in the example which means that the bot can be offline for 5 min at most.
JV.
2008/11/21 Paul Libbrecht <[email protected]>:
Erm,
is this a dumb question?
I really just want to automate
xwiki.getXWiki().getNotificationManager().addGeneralRule(this.rule); The notification page field of XWikiPreferences seems to be expecting XWikiActionNotificationInterface while we implement XWikiDocChangeNotificationInterface as in the pircbot tutorial. Is there no way except a wget in the startup script to actually trigger the listener to be activated?
thanks in advance
paul
Le 21-nov.-08 à 00:26, Paul Libbrecht a écrit :
Hello xwikiers,
the page at http://platform.xwiki.org/xwiki/bin/view/DevGuide/Notifications is really nice and shows a real nice pearl of XWiki.
I did similarly and my notifier seems to run smoothly.
I would like to know, however, what is the way to make sure that a notifier (an implementation of XWikiDocChangeNotificationInterface) is running at every restart of our XWiki.
I tried to add the fullname of either the velocity (the "starter") or the Groovy pages into that line and restarting but my notifier didn't seem to have been running after that.
What is the correct way? It should definitely be documented at the pircbot page.
thanks in advance
paul_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Fri, Nov 28, 2008 at 1:04 PM, Paul Libbrecht <[email protected]> wrote:
5 minutes is definitely too much.
You can configure your job to be fired every minute if you want.
The best approximation I found is: - insert a wget at the end of the start script - insert "platform monitor" as notification page itself creating that (the notification page seems to be called at all accesses)
Oh, and is the scheduler anything else than a crontab?
The scheduler is basically an embedded CRON, in your case its main advantage compared to a real cron is that it's configured in XWiki itself, allowing remote configuration + avoiding the need of XWiki related stuff outside of the webapp. JV.
I am still surprised that no-one expressed this requirement to actually get a faithful document-change-notification, this looks like the prime thing for any form of change tracking, the scheduler approach still seems to be able to miss parts. My easiest wish would be that an implementation of the interface as in the pirc-bot would just be accepted as notification page. Is that not doable? paul Le 28-nov.-08 à 13:23, Jean-Vincent Drean a écrit :
On Fri, Nov 28, 2008 at 1:04 PM, Paul Libbrecht <[email protected]> wrote:
5 minutes is definitely too much.
You can configure your job to be fired every minute if you want.
The best approximation I found is: - insert a wget at the end of the start script - insert "platform monitor" as notification page itself creating that (the notification page seems to be called at all accesses)
Oh, and is the scheduler anything else than a crontab?
The scheduler is basically an embedded CRON, in your case its main advantage compared to a real cron is that it's configured in XWiki itself, allowing remote configuration + avoiding the need of XWiki related stuff outside of the webapp.
On Fri, Nov 28, 2008 at 1:27 PM, Paul Libbrecht <[email protected]> wrote:
I am still surprised that no-one expressed this requirement to actually get a faithful document-change-notification, this looks like the prime thing for any form of change tracking, the scheduler approach still seems to be able to miss parts.
This requirement has been expressed, that's why we developed the watchlist application, to help people to keep track of the changes made in the wiki.
My easiest wish would be that an implementation of the interface as in the pirc-bot would just be accepted as notification page. Is that not doable?
Right, I had almost forgot this feature. I've put an alternative version of the irc bot tutorial (using only groovy) here : http://dev.xwiki.org/xwiki/bin/view/Drafts/GroovyNotifications Devs, WDYT about replacing the current tutorial with this one and use this version for the xwiki.org IRC bot ? JV.
On Wed, Dec 3, 2008 at 11:15 AM, Jean-Vincent Drean <[email protected]> wrote:
On Fri, Nov 28, 2008 at 1:27 PM, Paul Libbrecht <[email protected]> wrote:
I am still surprised that no-one expressed this requirement to actually get a faithful document-change-notification, this looks like the prime thing for any form of change tracking, the scheduler approach still seems to be able to miss parts.
This requirement has been expressed, that's why we developed the watchlist application, to help people to keep track of the changes made in the wiki.
My easiest wish would be that an implementation of the interface as in the pirc-bot would just be accepted as notification page. Is that not doable?
Right, I had almost forgot this feature. I've put an alternative version of the irc bot tutorial (using only groovy) here : http://dev.xwiki.org/xwiki/bin/view/Drafts/GroovyNotifications
Devs, WDYT about replacing the current tutorial with this one and use this version for the xwiki.org IRC bot ?
+1, I think the new way of initializing the IRC bot is better. It should not use the scheduler.
JV. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (3)
-
Jean-Vincent Drean -
Paul Libbrecht -
Thomas Mortagne