An ExecutionContext is a set of key-value pairs containing information that is scoped to either StepExecution or JobExecution. Spring Batch persists the ExecutionContext, which helps in cases where you want to restart a batch run (e.g., when a fatal error has occurred, etc.). All that is needed is to put any object to be shared between steps into the context and the framework will take care of the rest. After restart, the values from the prior ExecutionContext are restored from the database and applied.
Like this:
Like Loading...
Continue Reading
Different ways of implementing Singleton Design Pattern in Java
The singleton design pattern is used to restrict the instantiation of a class and ensures that only one instance of the class exists in the JVM. In other words, a singleton. read more…
Share this:
Like this:
Continue Reading
Elasticsearch : What, How and Why?
At its core, you can think of Elasticsearch as a server that can process JSON requests and give you back JSON data in near real-time.
Share this:
Like this:
Continue Reading
Locking in Hibernate using Java
In a relational database, locking refers to actions taken to prevent data from changing between the time it is read and the time is used.
Share this:
Like this:
Continue Reading
Make your own Java Annotations
Annotations, a form of metadata, provide data about a program that is not part of the program itself. Annotations have no direct effect on the operation of the code they annotate. Annotations have been a powerful part of Java, but most times we tend to use them rather than create them.
Share this:
Like this:
Continue Reading
Passing Data to Future Steps in Spring Batch
An ExecutionContext is a set of key-value pairs containing information that is scoped to either StepExecution or JobExecution. Spring Batch persists the ExecutionContext, which helps in cases where you want to restart a batch run (e.g., when a fatal error has occurred, etc.). All that is needed is to put any object to be shared between steps into the context and the framework will take care of the rest. After restart, the values from the prior ExecutionContext are restored from the database and applied.
Share this:
Like this:
Continue Reading