2

If so, How?

I am using IBM's implementation of JSR 352 on WebSphere Liberty.

Fazil Hussain
  • 425
  • 3
  • 16
  • See [this question](http://stackoverflow.com/questions/38271110/how-to-configure-run-java-batch-partitions-in-multi-jvm-in-websphere-lp) – Scott Kurz Jul 18 '16 at 10:04
  • Thank You, From what i understand this is how we'll have to configure the server. Does anything change in the java code? – Fazil Hussain Jul 18 '16 at 10:56

1 Answers1

2

See this question for configuration information.

As far as the programming model, one thing to consider would be the scope of your object instances, (not the batch artifacts themselves but your own application-level instances). E.g. if you had an @ApplicationScoped object you could notice a difference in a single JVM, where all partitions see the same instance, vs. multiple JVMs, where you'd see one instance per JVM.

Note that the batch JobContext and StepContext instances, because they are already scoped to an individual thread, to each of the top-level thread and each partition thread, do not raise this concern. They would function similarly in a single or multiple JVMs.

Community
  • 1
  • 1
Scott Kurz
  • 4,985
  • 1
  • 18
  • 40
  • This might be obvious but, will using multiple JVM's improve performance? (dramatically?) – Fazil Hussain Jul 18 '16 at 14:29
  • Sure, if the single JVM is maxed out it can certainly reduced the elapsed time needed to complete the job. If the circumstances are right, then yes, the difference can be large. – Scott Kurz Jul 18 '16 at 14:53