gpt4 book ai didi

java - JSR 352 : Is it possible to run different partitions of the same step in the same job in Multiple JVMs?

转载 作者:行者123 更新时间:2023-11-30 08:35:05 28 4
gpt4 key购买 nike

如果是这样,怎么做?

我在 WebSphere Liberty 上使用 IBM 的 JSR 352 实现。

最佳答案

参见 this question获取配置信息。

就编程模型而言,需要考虑的一件事是对象实例的范围(不是批处理工件本身,而是您自己的应用程序级实例)。例如。如果您有一个 @ApplicationScoped 对象,您可能会注意到在单个 JVM 中的差异,其中所有分区都看到相同的实例,而在多个 JVM 中,您会看到每个 JVM 一个实例。

请注意,批处理的 JobContext 和 StepContext 实例,因为它们已经限定在一个单独的线程、每个顶级线程和每个分区线程中,所以不要提出这个问题。它们在单个或多个 JVM 中的功能相似。

关于java - JSR 352 : Is it possible to run different partitions of the same step in the same job in Multiple JVMs?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38433257/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com