Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Getting session from any thread
Getting session from any thread [message #123338] Fri, 27 February 2009 15:05 Go to next message
Enrico Zanaga is currently offline Enrico ZanagaFriend
Messages: 50
Registered: July 2009
Member
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 13:28 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
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 Nov 09 05:17:25 GMT 2024

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

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

Back to the top