I have a related question that was bounced a few days ago: In POE, is it possible to register multiple event handlers for a single event? sort of like publish/subscribe messaging. For example, suppose I have an "order" event, I'd like several handlers to be invoked: one to insert into db, one to log, one to send email, etc. I could send multiple events, but that's not as nice.
Thanks. Z. ----- Original Message ----- From: "Apocalypse" <[EMAIL PROTECTED]> To: <poe@perl.org> Sent: Wednesday, April 20, 2005 5:30 AM Subject: Re: Anybody did this? > Pedro Melo Cunha wrote: > > > Events can now flow on each bus. Only sessions that attach to a > > specific bus can send or receive messages on this bus. > > > > Before I code even more, does anybody done this before? > > That looks somewhat similar to POE::Component::SimpleLog which routes > events to sessions. > Also, look at the chat server example on the cookbook, it uses a very > rudimentary system to broadcast events. > > -- > Apocalypse > > Homepage: http://JiNxEdStAr.0ne.us > IRC: [EMAIL PROTECTED] > IRC: [EMAIL PROTECTED] > Perl Stuff: http://search.cpan.org/~APOCAL/ >