Finish long running operations by triggered server update [message #824610] |
Mon, 19 March 2012 17:43  |
Eclipse User |
|
|
|
Hi @all,
i have to visualize (with an progress indicator rsp. a progress monitor)
some long running operations in my rcp application. The problem is the
following: I am starting a long running operation by calling an EJB
(server-side method). A progress indicator should be shown to the user.
This EJB-call triggers another thread on the server-side. After a couple
of time i get in update to the rcp application (in a seperate thread).
Now I want to remove the progress indication.
What kind of combinations of JobManager, Job, IProgressMonitor do I need
to achieve my goals. What would be a good solution. Please give me some
hints.
Thx,
Georg
|
|
|
Re: Finish long running operations by triggered server update [message #845863 is a reply to message #824610] |
Sun, 15 April 2012 09:43  |
Eclipse User |
|
|
|
Hi Georg,
In the jobs run method, be sure to periodically check the cancel flag and
some other flag that you set from the outside.
http://www.eclipse.org/articles/Article-Concurrency/jobs-api.html
Regards,
Wim
> Hi @all,
>
> i have to visualize (with an progress indicator rsp. a progress monitor)
> some long running operations in my rcp application. The problem is the
> following: I am starting a long running operation by calling an EJB
> (server-side method). A progress indicator should be shown to the user.
> This EJB-call triggers another thread on the server-side. After a couple
> of time i get in update to the rcp application (in a seperate thread).
> Now I want to remove the progress indication.
>
> What kind of combinations of JobManager, Job, IProgressMonitor do I need
> to achieve my goals. What would be a good solution. Please give me some
> hints.
>
> Thx,
> Georg
|
|
|
Powered by
FUDForum. Page generated in 0.21215 seconds