RE: Barracuda: Multiple listeners
"Christian Cryder" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
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