0
命令与应用开始打造专业化的工作:批处理作业不与停止commandLineJobRunner停止
java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9875 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=C:/Users/rishabh/Desktop/jmxremote.password -Dcom.sun.management.jmxremote.access.file=C:/Users/rishabh/Desktop/jmx.access -cp C:\Users\rishabh\slave-example-0.0.1-SNAPSHOT.jar org.springframework.batch.core.launch.support.CommandLineJobRunner application-context.xml sampleJob correlationId=71925ee3-4879-4dee-8177-fa347893df88
现在,当我试图阻止这项工作,像这样“ - 停止”的说法:
java -cp C:\Users\rishabh.pandey\slave-example-0.0.1-SNAPSHOT.jar org.springframework.batch.core.launch.support.CommandLineJobRunner -stop application-context.xml sampleJob
这给出:
作业在错误中终止没有找到job的运行执行= sampleJob with JobexecutionNotRun ningException
请提供示例命令示例。我还希望存储库状态对作业数据稳定。