mardi 26 mai 2015

How to store information for later use in Javaee Batch API

I am studying Java Batch (jsr-352) in order to test the feasibility of changing out current ETL tool for our own solution using this technology.

My goal is to build a job in which I:

  • get some (dummy) data from a datasource in step1,
  • some other data from other data-source in step2 and
  • merge them in step3.

I think I am not getting the concepts right: as far as I understood, JSR-352 is meant for this kind of ETL tasks, but it has 2 types of steps: chunk and batchlets. Chunks are "3-phase-steps", in which one reads, processes and writes the data. Batchlets are tasks that are not performed on each item on the data, but once (as calculating totals, sending email and others).

I would like to process each item but not write to a file, but send it to the next step. And also store the information for further use. Is this possible using JSR-352? All tutorials I found do not use chained steps, but mention it could be done.

Aucun commentaire:

Enregistrer un commentaire