Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Getting session from any thread
Getting session from any thread [message #123338] Fri, 27 February 2009 10:05 Go to next message
Eclipse UserFriend
Hi,

is it possible to get the session from any given thread?
RWT.getSessionStore() works only for the current thread.

Thanks
Enrico
Re: Getting session from any thread [message #123458 is a reply to message #123338] Mon, 02 March 2009 08:28 Go to previous message
Eclipse UserFriend
Enrico,

you need to explicitly "connect" code that is run within an
arbitrary non-UI-thread to a display/session. Use
UICallBack#runNonUIThreadWithFakeContext() therefore.

For further details please search this newsgroup and/or look at
these items:
* 250696: Display.getDefault() causes NPE in single-sourced
code
https://bugs.eclipse.org/bugs/show_bug.cgi?id=250696
* news thread "How to get onto GUI Event Thread from non UI
thread..."

HTH
Rüdiger

Enrico Zanaga wrote:
> Hi,
>
> is it possible to get the session from any given thread?
> RWT.getSessionStore() works only for the current thread.
>
> Thanks
> Enrico
Previous Topic:conceptual question: "file download link"?
Next Topic:announcing INQLE v 0.3
Goto Forum:
  


Current Time: Sat Jul 19 00:01:02 EDT 2025

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

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

Back to the top