我正在尝试启动批处理作业,这在部署时是未知的。(管理员用户可以通过 rest-api 定义自己的工作)我打电话给:
JobOperator jobOperator = BatchRuntime.getJobOperator();
--> Class org.wildfly.extension.batch.jberet.deployment.JobOperatorService - 不允许启动未知作业。
Javadoc 说:
* Note that for each method the job name, or derived job name, must exist for the deployment. The allowed job names and
* job XML descriptor are determined at deployment time.
我如何开始在部署时未确定的工作?
提前致谢