Re: Barracuda: Multiple listeners

Ron Alsobrook <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
That helps tremendously and everything's working now.  One quick question: 
What do you mean by "higher up the event chain"?  Does that just mean the 
order in which interests were specified or does it mean something else?  I'm 
pretty much in the dark when it comes to the internals of the event model.  

Ron


-----Original Message-----
From: Christian Cryder
Sent: Wednesday 11 December 2002 10:52 am
Subject: RE: Barracuda:  Multiple listeners

> Hi Ron,
>
> Whichever one is higher up the event chain will get called first. By
> default, DefaultBaseEventListener returns true from the isHandled() method,
> meaning subsequent listeners won't get notified. If all you are doing is
> logging in the parent listener, then override this method to return false
> (thereby telling teh event handler to keepo dispatching)
>
> That help?
>
> Christian
> ----------------------------------------------
> Christian Cryder [[email protected]]
> Internet Architect, ATMReports.com
> Barracuda - http://barracuda.enhydra.org
> ----------------------------------------------
> "Coffee? I could quit anytime, just not today"
>
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]]On
> > Behalf Of Ron Alsobrook
> > Sent: Wednesday, December 11, 2002 1:15 PM
> > To: [email protected]
> > Subject: Barracuda: Multiple listeners
> >
> >
> > I'm not clear on some of the details when using multiple
> > listeners on a single
> > event.  I have two control event handlers in two different
> > gateways listening
> > to a single event.  That event is actually a parent event that never gets
> > explicitly generated by the client, but all of the child events
> > are specified
> > as interests in various gateways.  It seems I can't get both handlers to
> > execute, only one at a time.  Do I need to do something special
> > to make this
> > work?  Also, in what order are events queued in such a case?
> > Thanks again.
> >
> > Ron
> >
> > _______________________________________________
> > Barracuda mailing list
> > [email protected]
> > http://www.enhydra.org/mailman/listinfo.cgi/barracuda
> > FAQ - http://www.jguru.com/faq/Barracuda
>
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://www.enhydra.org/mailman/listinfo.cgi/barracuda
> FAQ - http://www.jguru.com/faq/Barracuda


_______________________________________________
Barracuda mailing list
[email protected]
http://www.enhydra.org/mailman/listinfo.cgi/barracuda
FAQ - http://www.jguru.com/faq/Barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.