M3 Batch Process

M3 Batch Process

M3 Batch Processor Flow:

  1. The M3 web application inform the M3 run-time the next function call is to be processed asynchronously as a Batch Job
  2. M3 creates a JSON document that describes the function to call and its parameters
  3. M3 run-time redirects the Plex Call to the Plex dispatcher running on the batch server
  4. The JSON document is saved and a message is sent to the batch processor queue
  5. The Batch processor fetches the next message from the queue
  6. The Batch processor fetches and parses the JSON document and calls the M3 Plex Function

Prerequisites:

  • Java 8 installed in AS400
  • IFS folders for development, QA and production enviroment
  • Data Area Objects in AS400

Configuration

  • Creation of Data Area Objects
  • Creation of enviroments

Creation of Data Area Objects

The M3 batch process requires 2 Data Area Object:

  • M3_HOME,  Java Home folder for Development
  • M3_APP, Java Application folder




Creation of Environments

The development environment will have the next structure:

../dev/lib    this folder will contain all the M3 run-tine files

../dev/bin   this folder will contain the batch.propeties, obuser.properties and the m3BAtchJob.sh

..dev/app/lib  this folder will contains all the application files, jar files of the application