|EventHandler and ClientSession [message #1273053]
||Wed, 19 March 2014 12:06
| João Rebelo
Registered: December 2013
I'm analyzing the EventHandler service from Osgi core services, and it seems a quite nice, generic purpose, Event Bus.
Unfortunately this is a Singleton service for all environment which won't work well in RAP environments.
My idea would be have sendEvent and registerListener primitives in ClientSession which will add to each event and Listener the respective session property with the session ID. I believe that Client Session is the real "session singleton" and so the best place to implement this.
Some attention should be taken to remove Session listeners when the session dies.
Any ideas, suggestions?
Any one else needing this?
[Updated on: Wed, 19 March 2014 12:06]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02683 seconds