Setting up the File Output sample
To set up the sample, complete the following tasks:
- Import and deploy the sample. This action adds the following directories to the workspace:
- FileOutputNodeSampleFlowProject. This project contains one sample message flow and one
.mbtest file.
This project also contains a BAR file containing a compiled message flow.
- FileOutputNodeSampleJavaProject. This project contains the source code
for the JavaCompute node that is used
in the sample message flow.
- Ensure that your default broker has been created and is running.
- Set the MQSI_FILENODES_ROOT_DIRECTORY environment variable
to specify the root directory that is used by the FileOutput node.
- 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):
You can replace c:\MQSIFileSamples\FileOutput
or "/tmp/MQSIFileSamples/FileOutput" with the path to the directory of your choice.
- Stop and restart your broker. See Starting and stopping a broker.
You can now run the sample, see Running the File Output sample.
Back to sample home