Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Accessing SessionSingleton from thread
Accessing SessionSingleton from thread [message #804549] Wed, 22 February 2012 19:10
David Casas is currently offline David CasasFriend
Messages: 58
Registered: November 2011
Location: Barcelona
Member

Hi guys,

I am trying to access my sessionsingleton from a background thread, the thing is I get a null value when I call Display.getDefault() method. Is it correct to do this?

final Display display = Display.getCurrent();
final Runnable runnable = new Runnable() {
	public void run() {
	UICallBack.runNonUIThreadWithFakeContext(display,new Runnable() {
	public void run() {
	NMSessionSingleton sessionSingleton = NMSessionSingleton.getInstance();
	... Do something ...								
	}
});
}
}
};
new Thread(runnable).start();


What am I doing wrong??
Previous Topic:org.apache.commons.fileupload1.2.0.201108091246 download address???
Next Topic:Accessing SessionSingleton from thread
Goto Forum:
  


Current Time: Fri Apr 26 05:20:03 GMT 2024

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

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

Back to the top