也许,我做了一些错误的事情,但我无法为以下局势找到一个很好的办法。
我愿用Spring Batch underneath执行职务。 工作通过预设的<条码>AsyncTaskExecutor在单独的校对进行。 在我的单位试验中,我要:
- Create few domain objects and persist them via DAO
- Invoke the service method to launch the job
- Wait until the job is completed
- Use DAO to retrieve domain objects and check their state