Does spring batch job repository with resource-less trx manager keep state in memory for ever?

試著忘記壹切 提交于 2019-12-08 20:43:30

Yes, the map based job repository will keep the state in memory for ever. As the javadoc states (http://docs.spring.io/spring-batch/apidocs/org/springframework/batch/core/repository/support/MapJobRepositoryFactoryBean.html), that JobRepository implementation really isn't intended for production use. If you want to have a memory based JobRepository that you can clean up, use an in memory database and execute clean up scripts periodically.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!