Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Batch Processing with Watermark

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

Batch Processing with Watermark

Avatar for ksuhas4455

ksuhas4455

August 02, 2017
Tweet

More Decks by ksuhas4455

Other Decks in Programming

Transcript

  1. Components – Batch: A batch job which is a block

    of code that splits messages into individual records, performs actions upon each record, then reports on the results and potentially pushes the processed output to other systems or queues. – Poll: Polls the nested message processor for the new messages. – Database: Allows mule application to perform the retrieval of large set of data from JDBC databases. – JMS: JMS endpoint allows mule applications to send and receive message to queues with JMS API.
  2. – Configure the Poll in the input of batch. In

    the Poll , configure the database and query for the records. Enable the watermark and read the value from the property file and store in a variable. – watermark. date=#[groovy: new Date(System.currentTimeMillis() - 3600000).format('yyyy-MM-dd HH:mm:ss', TimeZone.getTimeZone('PST'))]. – Select MAX in the selector and define the selector expression as #[payload.ADB_TIMESTAMP].
  3. Conclusion – All the values are set in the properties

    file. – Run the project and you will get the results based on the watermark value set.