Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Context of SessionStoreListener
Context of SessionStoreListener [message #87111] Wed, 14 May 2008 09:06 Go to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi,
is it guaranteed that the SessionStoreListener#beforeDestroy listener is
always called in the context of the session that is destroyed? Can I
access SessionSingletons without the danger of being diposed already?

Regards,
Stefan.
Re: Context of SessionStoreListener [message #87226 is a reply to message #87111] Wed, 14 May 2008 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

yes, it's one of the reasons why we introduced the ISessionStore
abstraction - to allow a 'defined' shutdown process.
ISessionStoreListener#beforeDestroy gets invoked before any attribute is
removed from the store. Furthermore the implementation ensures that
beforeDestoy is executed in the UIThread of the session - so
SessionSingletons should be accessible without any special treatment.


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Stefan Röck [mailto:stefan.roeck@cas.de]
Bereitgestellt: Mittwoch, 14. Mai 2008 11:07
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: Context of SessionStoreListener
Betreff: Context of SessionStoreListener


Hi,
is it guaranteed that the SessionStoreListener#beforeDestroy listener is
always called in the context of the session that is destroyed? Can I
access SessionSingletons without the danger of being diposed already?

Regards,
Stefan.
Re: Context of SessionStoreListener [message #87268 is a reply to message #87226] Wed, 14 May 2008 14:51 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Excellent - I hoped that you would say this :-)


Frank Appel schrieb:
> Hi,
>
> yes, it's one of the reasons why we introduced the ISessionStore
> abstraction - to allow a 'defined' shutdown process.
> ISessionStoreListener#beforeDestroy gets invoked before any attribute is
> removed from the store. Furthermore the implementation ensures that
> beforeDestoy is executed in the UIThread of the session - so
> SessionSingletons should be accessible without any special treatment.
>
>
> Ciao
> Frank
>
> -----Ursprüngliche Nachricht-----
> Von: Stefan Röck [mailto:stefan.roeck@cas.de]
> Bereitgestellt: Mittwoch, 14. Mai 2008 11:07
> Bereitgestellt in: eclipse.technology.rap
> Unterhaltung: Context of SessionStoreListener
> Betreff: Context of SessionStoreListener
>
>
> Hi,
> is it guaranteed that the SessionStoreListener#beforeDestroy listener is
> always called in the context of the session that is destroyed? Can I
> access SessionSingletons without the danger of being diposed already?
>
> Regards,
> Stefan.
>
Previous Topic:Custom Control regarding property value
Next Topic:Anyone get Uploader widget to work?
Goto Forum:
  


Current Time: Fri Sep 20 16:22:19 GMT 2024

Powered by FUDForum. Page generated in 0.03418 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top