如何在WebSphere LP中的多JVM中配置/运行Java Batch分区 [英] How to configure/run Java Batch partitions in multi JVM in WebSphere LP

查看:136
本文介绍了如何在WebSphere LP中的多JVM中配置/运行Java Batch分区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在WebSphere LP Java Batch中,我通过job.xml配置将作业分为4个分区,因此,当作业在服务器上执行时,四个线程在单个jvm上运行以完成作业.现在,我想在2个jvm上运行分区. 假设2个分区将在服务器1上运行,而2个分区将在服务器2上运行.

In WebSphere LP Java Batch, I have divided my job in 4 partitions through job.xml configuration, So when the job executes on server 4 threads runs on single jvm to complete the job. Now I want to run the partitions on 2 jvm. Lets say 2 partitions will run on server-1 and 2 partitions will run on server-2.

有人对此进行了尝试,以通过配置在多个jvm中运行分区吗?还是有任何想法会受到欢迎.

Does someone tried something on this to run partitions in multiple jvm through configuration or any thoughts would be welcome.

推荐答案

您需要在运行作业的服务器中进行一些额外配置,以使其能够为作业分区发送消息,而不仅仅是剥离线程来运行它们.并且您需要配置其他服务器来获取这些消息并执行分区.
如果使用的是MQ,则可以在以下位置找到有关此配置的信息:

You need some extra configuration in the server running the job to allow it to send messages for the job partitions rather than just spin off threads to run them. And you need other servers configured to get those messages and execute the partitions.
If you are using MQ then information about this configuration can be found here: http://www.ibm.com/support/knowledgecenter/SS7K4U_liberty/com.ibm.websphere.wlp.zseries.doc/ae/twlp_batch_multipartitionsmq.html If you are using the Liberty embedded messaging provider then look here: http://www.ibm.com/support/knowledgecenter/SS7K4U_liberty/com.ibm.websphere.wlp.zseries.doc/ae/twlp_batch_multipartitionsembed.html The parent document for those two has links to other information about configuring and running Liberty Batch jobs.

这篇关于如何在WebSphere LP中的多JVM中配置/运行Java Batch分区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆