简体   繁体   English

如何从Spring Batch Admin触发远程批处理作业?

[英]How to trigger remote batch job from Spring Batch Admin?

I have two WARs deployed in same jboss application server:- 我在同一jboss应用程序服务器中部署了两个WAR:

WAR 1 --> Having Job launcher and job related servies WAR 1->具有Job Launcher和与工作相关的服务

WAR 2 --> Just have Spring Batch Admin. WAR 2->只需具有Spring Batch Admin。

I am using same DB repository for both spring batch(WAR1) and spring batch admin(WAR2). 我对spring batch(WAR1)和spring batch admin(WAR2)使用相同的数据库存储库。

I am able to access all job-related status by using Spring Batch Admin but I am stuck how to trigger the job which is deployed in WAR 1, 我可以使用Spring Batch Admin访问所有与作业相关的状态,但是我被困在如何触发在WAR 1中部署的作业中

I am also able to create the rest web-services in WAR1 with below URL 我还可以使用以下URL在WAR1中创建其余的Web服务

http://localhost:8080/myJob http:// localhost:8080 / myJob

But now what would be my next, where I should configure this rest URL in Spring Batch Admin. 但是现在我接下来要做什么,我应该在Spring Batch Admin中配置此剩余URL。

It will be great if someone can help me on that. 如果有人可以帮助我,那将是很棒的。

IIRC Spring Batch Admin只能在与自己相同的应用程序中启动作业。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM