You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Massimiliano Cuccia <ma...@hotmail.com> on 2007/02/22 16:26:00 UTC

problem using listener

Hi you all!maybe you can help me, so please give me a try!!I'm usingTomcat 5.5.20Spring 2.0JCR 1.0Jackrabbit 1.2.1Spring modules 0.7 for jcr 1.0I configured a listener in the spring config file to wait for NODE_ADDED in nodes of type xxx:MyMixinDir    <bean id="sessionFactory" class="org.springmodules.jcr.JcrSessionFactory">        <property name="repository" ref="repository"/>        <property name="eventListeners">            <list>                <bean class="org.springmodules.jcr.EventListenerDefinition">                                        <property name="nodeTypeName">                        <list>                            <value>xxx:MyMixinDir</value>                        </list>                    </property>                    <property name="eventTypes" value="1"/>                    <property name="listener" ref="NewProcessInstanceListener"/>                </bean>            </list>        </property>    </bean>the NewProcessInstanceListener bean class just write "hello" to the log (nothing more, at now).I created a dir MyListenerDir adding the mixin xxx:MyMixinDir to it.But when I add a file in that directory it seems that 10 or more listeners comes upinfact I see 10 or more (seems random) "hello" in the logwhere am i wrong?
_________________________________________________________________
Prova Live.com: il tuo mondo on line, con notizie, sport, meteo e molto altro ancora.
http://www.live.com/

Re: problem using listener

Posted by Marcel Reutegger <ma...@gmx.net>.
Massimiliano Cuccia wrote:
> the NewProcessInstanceListener bean class just write "hello" to the log 
> (nothing more, at now).I created a dir MyListenerDir adding the mixin
> xxx:MyMixinDir to it. But when I add a file in that directory it seems that
> 10 or more listeners comes upinfact I see 10 or more (seems random) "hello"
> in the logwhere am i wrong?

to me this indicates that there are ten sessions alive, each with an event 
listener registered.


regards
  marcel