Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » problem, when use SessionStoreListener() and UICallBack.activate()(beforeDestroy() is not work, when i set UICallBack.activate() for update ui from some thread)
problem, when use SessionStoreListener() and UICallBack.activate() [message #655895] Wed, 23 February 2011 07:13 Go to next message
Pureroot is currently offline PurerootFriend
Messages: 4
Registered: October 2010
Junior Member
i'm add session store listener for cleanup action
public int createUI() {
       ...
       RWT.getSessionStore().addSessionStoreListener(
				new SessionStoreListener() {

					@Override
					public void beforeDestroy(SessionStoreEvent event) {
                                                 // Perform cleanup     ...
                                        }
                                }

                     });
      RWT.getSessionStore().getHttpSession().setMaxInactiveInterval(10);
       ...
}

when run rap application, beforeDestroy() called if httpsession's timeout

...
UICallBack.activate( "callback id" );
...

but when i create some thread for update ui , beforeDestroy() never call if httpsession's timeout

PS. when i comment UICallBack.activate(), beforeDestroy() 's work if httpsession's timeout

what's wrong for my process?

Re: problem, when use SessionStoreListener() and UICallBack.activate() [message #655896 is a reply to message #655895] Wed, 23 February 2011 07:30 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2359
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
it seems that your UICallBack is active all the time. Thus, you have a
blocked UICallBack request which prevents the session from expiring.
That's why I suggest you to activate the UICallBack when you really need
it and deactivate it when it is not needed.
HTH,
Ivan

On 2/23/2011 9:15 AM, Pureroot wrote:
> i'm add session store listener for cleanup action
>
> public int createUI() {
> ...
> RWT.getSessionStore().addSessionStoreListener(
> new SessionStoreListener() {
>
> @Override
> public void beforeDestroy(SessionStoreEvent event) {
> // Perform cleanup
> ...
> }
> }
>
> });
> RWT.getSessionStore().getHttpSession().setMaxInactiveInterva l(10);
> ...
> }
>
> when run rap application, beforeDestroy() called if httpsession's timeout
>
>
> ..
> UICallBack.activate( "callback id" );
> ..
>
> but when i create some thread for update ui , beforeDestroy() never
> call if httpsession's timeout
>
> PS. when i comment UICallBack.activate(), beforeDestroy() 's work if
> httpsession's timeout
>
> what's wrong for my process?
>
>
Re: problem, when use SessionStoreListener() and UICallBack.activate() [message #656377 is a reply to message #655896] Fri, 25 February 2011 11:20 Go to previous message
Pureroot is currently offline PurerootFriend
Messages: 4
Registered: October 2010
Junior Member
Thank for reply,

my UICallBack request which prevents the session from expiring
beforeDestroy()'s work, if close rap app tab in browser
Previous Topic:That holy org.eclipse.ui package! :S
Next Topic:[DateTime] Selection event lost
Goto Forum:
  


Current Time: Sun Oct 24 08:42:03 GMT 2021

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

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

Back to the top