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:
- On Windows: c:\MQSIFileInput
- On Linux: /tmp/MQSIFileInput
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:
- FileBatchProcessingSample_Branch message flow:
- FileInput node FILE_BRANCH : Set the Input Directory
property to relative path branch_out
- FileOutput node FILE_HOFFICE: Set the Directory
property to relative path hoffice_in
- FileBatchProcessingSample_HOffice message flow:
- FileInput node FILE_HOFFICE_IN : Set the Input Directory
property to relative path hoffice_in
- FileOutput node FILE_HOFFICE_OUT : Set the Directory
property to relative path hoffice_out
To set up the Batch Processing sample:
- Create the following directories:
On Windows:
- c:\MQSIFileInput\branch_out
- c:\MQSIFileInput\hoffice_in
- c:\MQSIFileInput\hoffice_out
On Linux:
- /tmp/MQSIFileInput/branch_out
- /tmp/MQSIFileInput/hoffice_in
- /tmp/MQSIFileInput/hoffice_out
- Ensure that your default broker has been created.
- Set the environment variable MQSI_FILENODES_ROOT_DIRECTORY to the root directory.
- 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):
- Stop and restart your broker. See Starting and stopping a broker.
Back to sample home