-
Sep 7th, 2012, 08:19 AM
#1
Asynchrone Thread and synchronization
Hello,
I want to synchronize the parent thread with the asynchronious threads that i created as following :
@Autowired
private TaskExecutor asyncTaskExecutorPain008;
@Override
public RepeatStatus execute(StepContribution stepcontribution, ChunkContext chunkcontext) throws ServiceException {
methodwhichcallthethreads(parameter);
--> Here The thread principal have to wait the other thread (How can i do this ? )
}
private methodwhichcallthethreads(parameter){
asyncTaskExecutor.execute(new Thread(){
balbalalbalblalab
}
}
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules