Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem with progress monitor
Problem with progress monitor [message #672214] Fri, 20 May 2011 10:48 Go to next message
marie Missing name is currently offline marie Missing nameFriend
Messages: 63
Registered: March 2011
Member
Hi all,
I m developing a rap application and running it through jboss5,
I call a service from Jboss which takes time to populate data in rap ui.and i m running this service in same thread.and i dont want to use progress monitor as it creates a new thread so to show long operations is there any way apart from progress monitor?
I would appreciate any feedback
Thanks in advace:)
Re: Problem with progress monitor [message #672806 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #672809 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #672854 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #672859 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #672875 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #672882 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #672910 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #672945 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #672953 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #673050 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #673056 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #673070 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #673125 is a reply to message #672214] Sun, 22 May 2011 10:28 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

> I m developing a rap application and running it through jboss5, I call a
> service from Jboss which takes time to populate data in rap ui.and i m
> running this service in same thread.

I suppose with "same thread" you mean the UIThread, right?

> and i dont want to use progress
> monitor as it creates a new thread so to show long operations is there
> any way apart from progress monitor?

If you run long-running code in the UI Thread, the request is blocked and
UI cannot be updated. If you want to run long running code in the
background, i.e. while the UI is still responsive, I'm afraid there is no
alternative to a background thread.

I think the best solution to this problem would be to call remote methods
asynchronously, i.e. with a callback that is notified when the work is
finished. But not sure if this is possible with your backend.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem with progress monitor [message #674179 is a reply to message #672806] Thu, 26 May 2011 03:19 Go to previous message
marie Missing name is currently offline marie Missing nameFriend
Messages: 63
Registered: March 2011
Member
Hi Ralf,
Thanks for your response
Can u please elabrote it with an example?
Previous Topic:Non-serializable attribute org.eclipse.rwt.internal.service.SessionStoreImpl
Next Topic:Integration of custom widgets in existing application
Goto Forum:
  


Current Time: Fri Apr 19 10:47:40 GMT 2024

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

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

Back to the top