|
Re: problem, when use SessionStoreListener() and UICallBack.activate() [message #655896 is a reply to message #655895] |
Wed, 23 February 2011 07:30 |
Ivan Furnadjiev Messages: 2426 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?
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02416 seconds