Hi *,
My status: Thread newbie.
My goal:
A servlet which can be queried by an task_id for the current status of tasks
(running/stopped/failed/succeed), which polls different SOAP webservices
by an id until the webservice job finished.
My questions:
1) Can anyone give me some working example code for
a AbstractTask + ConcreteTask + TaskController/TaskMonitor + WorkerThread +
PollingWorker class (mentioned in Doug Lea's, Concurrent Programming
in Java, Second Edition, page 302)?
2) What is the best way to monitor (from a servlet) the status of a task running in an separate thread.
Best,
Torsten
My status: Thread newbie.
My goal:
A servlet which can be queried by an task_id for the current status of tasks
(running/stopped/failed/succeed), which polls different SOAP webservices
by an id until the webservice job finished.
My questions:
1) Can anyone give me some working example code for
a AbstractTask + ConcreteTask + TaskController/TaskMonitor + WorkerThread +
PollingWorker class (mentioned in Doug Lea's, Concurrent Programming
in Java, Second Edition, page 302)?
2) What is the best way to monitor (from a servlet) the status of a task running in an separate thread.
Best,
Torsten