This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes Multithreading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Multithreading" Watch "Multithreading" New topic
Author

Multithreading

siva karthi
Greenhorn

Joined: Jan 06, 2003
Posts: 1
Hi,

I am working with ThreadPoolExecutor using spring's ThreadPoolTaskExecutor. I created a seperate class to do the job which implements runnable and call the execute method of the executor.

I am doing this in struts action layer.

I have a issue so that the when executor is executing the jobs, main thread is not waiting for these threads to complete and forward the control to jsp page. So i am not able to get the exact state of the entities.[which is updated by the thread]

Is it possible to make the main thread to wait? Otherwise please suggest other way to do this...

Thank you
Hadi Zeftin
Greenhorn

Joined: Jun 03, 2010
Posts: 8
do you need to execute/submit another threads? if not maybe you can use
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multithreading
 
Similar Threads
Basic question: how to stop a Thread with a Future (java 5)
Trying to implement a mail queue in JavaMail using ExecutorService
SingleThreadExecutor suggestions needed
Issue with executor thread pool
How to timeout Tomcat request?