Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem with progress monitor
Problem with progress monitor [message #672214] Fri, 20 May 2011 06:48 Go to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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 06:28 Go to previous messageGo to next message
Eclipse UserFriend
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] Wed, 25 May 2011 23:19 Go to previous message
Eclipse UserFriend
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 Jul 04 04:03:57 EDT 2025

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

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

Back to the top