Delivery of events to handlers is an implementation detail. So long as the ordering guarantees are maintained, a compliant implementation can use single-threaded or multi-threaded delivery.... the idea being to allow different implementations to compete on details such as these.
The Felix EventAdmin implementation complies with the specification but it is not the most powerful or feature-ful implementation that one could imagine. It's possible that a commercial implementation exists with the features you want. Regards, Neil On Wednesday, 18 January 2012 at 02:35, DBinSD wrote: > > Does the felix implementation of the EventAdmin service support the delivery > of events, asynchronously and in parallel to multiple listeners at once? It > appears as though the EventAdmin.postEvent( ) call properly immediately > returns to the caller as one would expect, however, the receivers of that > event are called in serial. It appears as though the > EventHandler.handleEvent( ) call is a blocking call, regardless of how the > event was received (postEvent or sendEvent) and all event handlers will be > iterated through in a serial fashion, blocking on each one until completion > or until the timeout is reached. > > If this is the expected default behavior, thats OK. However the spec seems > to imply that is is possible for the EventAdmin to publish events > asynchronously with multiple threads as long as it keeps the event ordering: > > According to the OSGi service copendium, section 113.7.3, "...The Event > Admin service can use more than one thread to deliver events..." > > The functionality I am looking for is the ability to post an event, > asynchronously, and have 100 EventHandlers of that event receive the event > pseudo-simultaneously, regardless of how long it takes any one of those > particular EventHanlders to process the event. If it means threading the > event handling process, so be it, however if there is a more elegant OSGi > way to do it, im all ears. > > Thanks! > Chris > > > > -- > View this message in context: > http://old.nabble.com/EventAdmin-Asynchronous-Parallel-EventHandler-tp33158446p33158446.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com > (http://Nabble.com). > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > (mailto:users-unsubscr...@felix.apache.org) > For additional commands, e-mail: users-h...@felix.apache.org > (mailto:users-h...@felix.apache.org) --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org