Setting up the Batch Processing sample

You must set a directory to read or write a file to when you configure a FileInput or FileOutput node. In the nodes you can either set an absolute path or set a relative path. If you set a relative path, you must use the environment variable MQSI_FILENODES_ROOT_DIRECTORY to set the directory root.

The root directory that is used in this sample is:

Note: You can choose a different root directory and set the environment variable MQSI_FILENODES_ROOT_DIRECTORY to this directory instead.

Two message flows are used in this sample. Within each message flow, the FileInput and FileOutput nodes have different relative paths set:

To set up the Batch Processing sample:

  1. Create the following directories:

    On Windows:

    On Linux:

  2. Ensure that your default broker has been created.
  3. Set the environment variable MQSI_FILENODES_ROOT_DIRECTORY to the root directory.
    1. Follow the instructions at Setting up a command environment to create a command environment and a command file that contains the following line (ensuring that there is no white space around the equal (=) sign):
      • On Windows:
        SET MQSI_FILENODES_ROOT_DIRECTORY=c:\MQSIFileInput
      • On Linux:
        export MQSI_FILENODES_ROOT_DIRECTORY="/tmp/MQSIFileInput"
    2. Stop and restart your broker. See Starting and stopping a broker.

Back to sample home