我们现有Spring Batch Application,我们希望它可以在多个节点上运行.
Spring Batch的scalabilty文档涉及代码更改和配置更改.
我只是想知道这是否可以通过配置更改来实现(添加新类并在配置中连接它很好但只是想避免对现有类的代码更改).
非常感谢您的帮助.
我有这样的方法:
public void runMethod()
{
method1();
method2();
method3();
}
Run Code Online (Sandbox Code Playgroud)
我想根据id多次调用此runMethod.但是,如果说method2()由于某种原因失败,那么当我调用runMethod时,它应该执行method3()而不是再次尝试执行method1()(已经成功运行此id).
实现这一目标的最佳方法是什么?
非常感谢您的帮助
我希望弹簧安全性应该通过布尔标志 - 开关开启/关闭功能来配置.
例如,
<bean class="org.springframework.ws.server...">
<property name="interceptors">
<list>
----> Here I would like an if condition test based on external property i.e. if true, register the interceptor, else do nothing
<ref local="wsSecurityInterceptor">
--> other interceptors like logging etc.
</list>
</property>
</bean>
Run Code Online (Sandbox Code Playgroud)
这在config.xml中是否可行?非常感谢.