Re: [xwiki-users] Registering an event listener automatically

2010-02-24 Thread Rieken, Joshua
) -Joshua > -Original Message- > From: users-boun...@xwiki.org > [mailto:users-boun...@xwiki.org] On Behalf Of Jerome Velociter > Sent: Wednesday, February 24, 2010 10:31 AM > To: users@xwiki.org > Subject: Re: [xwiki-users] Registering an event listener automatically > > On 2/

Re: [xwiki-users] Registering an event listener automatically

2010-02-24 Thread Jerome Velociter
On 2/24/10 5:49 PM, Vincent Massol wrote: > > On Feb 24, 2010, at 5:30 PM, Jerome Velociter wrote: > >> On 2/24/10 5:24 PM, Caleb James DeLisle wrote: >>> If you're talking about an eventListener in a groovy script, I think >>> it's done with a scheduler. You can look at Vincent's IRC bot which >>>

Re: [xwiki-users] Registering an event listener automatically

2010-02-24 Thread Vincent Massol
On Feb 24, 2010, at 5:30 PM, Jerome Velociter wrote: > On 2/24/10 5:24 PM, Caleb James DeLisle wrote: >> If you're talking about an eventListener in a groovy script, I think >> it's done with a scheduler. You can look at Vincent's IRC bot which >> does that very thing. >> http://svn.xwiki.org/svn

Re: [xwiki-users] Registering an event listener automatically

2010-02-24 Thread Jerome Velociter
On 2/24/10 5:24 PM, Caleb James DeLisle wrote: > If you're talking about an eventListener in a groovy script, I think > it's done with a scheduler. You can look at Vincent's IRC bot which > does that very thing. > http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-applications/trunk/ircbot/src/main/

Re: [xwiki-users] Registering an event listener automatically

2010-02-24 Thread Vincent Massol
Hi Joshua, If your listener is located in a jar in WEB-INF/lib then it'll get registered automatically. Make sure it's registered properly as a component. If you're talking about registering some event listener defined in a page using the groovy macro then it's harder. You could have a schedule

Re: [xwiki-users] Registering an event listener automatically

2010-02-24 Thread Caleb James DeLisle
If you're talking about an eventListener in a groovy script, I think it's done with a scheduler. You can look at Vincent's IRC bot which does that very thing. http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-applications/trunk/ircbot/src/main/resources/IRC/ Caleb James DeLisle Rieken, Joshua w

[xwiki-users] Registering an event listener automatically

2010-02-24 Thread Rieken, Joshua
Hello, I need to find the best way of registering an event listener automatically on wiki startup. Right now I have to manually register the listener in a manner similar to the one illustrated in the Groovy Notification Tutorial (http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificat