Project

General

Profile

Actions

Feature #112

closed

conduct POC using Spring Batch framework

Added by chin-yeh over 13 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
06/07/2011
Due date:
% Done:

100%

Estimated time:
Resolution:

Description

To demonstrate the concept, I've used one of the existing batch programs, MonthlyGstSalesReport as an example.

The batch program will:
  • query record from store database and transform data in certain columns
  • query record from my_store database and transform data in certain columns
  • output the transformed data to a double-comma-quoted CSV file
  • run every month (tweaked to run daily)
List of component used (in Spring-Batch):
  • ItemReader - to query record from database
  • Processor - to transform data
  • ItemWriter - to output the transformed data to file
To test run the program:
  • via Spring Batch Admin
    1. go to http://192.168.2.13:8080/batch-console/jobs
    2. click on the gstSalesReport job
    3. in the JobParameter input box, enter:
      format:
      report.date=yyyy-MM-dd,run.id=<<any integer value>>
      

      example:
      report.date=2010-01-01,run.id=123
      
    4. click the Launch button to start the job
  • via Command Line
    1. login to 192.168.2.13 as support user
    2. execute the following command:
      /opt/batch-poc/scripts/gstSalesReport.sh
      
How to monitor/query the job status:
  1. go to http://192.168.2.13:8080/batch-console/jobs
  2. click on the gstSalesReport job

You could refer to wiki for more information about this POC.

Actions

Also available in: Atom PDF