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