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:

    1. Create the following directories: On Windows:

                  c:\MQSIFileInput\branch_out
                 c:\MQSIFileInput\hoffice_in
                 c:\MQSIFileInput\hoffice_out
    1. Ensure that your default broker has been created.
    2. Set the MQSI_FILENODES_ROOT_DIRECTORY environment variable to the root directory: On Windows:

      1. To open a command console window that can run WebSphere Message Broker commands, click Start > All Programs > IBM WebSphere Message Broker > Command Console.
      2. Ensure that the broker is stopped by using the mqsistop command, for example:

        mqsistop MB7BROKER
      3. Close the command console window.
      4. Click Control Panel > System > Advanced > Environment Variables, in System Variables click New, set the environment variable, MQSI_FILENODES_ROOT_DIRECTORY, to c:\MQSIFileInput
      5. Open a new WebSphere Message Broker command console window to pick up the new environment variable.
      6. Start the broker by using the mqsistart command, for example:




        mqsistart MB7BROKER
        
        




      On Linux:




      1. To configure an environment that can run broker commands, run the command:




        source /opt/ibm/mqsi/7.0/bin/mqsiprofile




      2. Set the environment variable MQSI_FILENODES_ROOT_DIRECTORY to /tmp/MQSIFileInput by running the following command, ensuring that there is no white space around the equal (=) sign:




        export MQSI_FILENODES_ROOT_DIRECTORY="/tmp/MQSIFileInput"




      3. Start the broker by using the mqsistart command, for example:




        mqsistart MB7BROKER








    0 comments:

    My Instagram