Parsing and Validating SWIFT Files Using SwiftCheck

You can use the SwiftCheck utility to parse and validate one or more SWIFT files. The utility can be used for low-level testing of SWIFT message files. You can configure the SwiftCheck.tra file, and then run the utility. The utility is located in the TIB_ADSWIFT_HOME\bin directory.

Before you begin

If you have not installed TIBCO Enterprise Message Service™ before installing the plug-in, and the installed TIBCO Runtime Agent version is 5.9.x, you have to install TIBCO Enterprise Message Service in the existing TIBCO_HOME, and add the EMS class path to the mySwiftCheck.tra file.

To do so:

    Procedure
  1. Open the copied TRA file: mySwiftCheck.tra.

  2. Add the following class path to the tibco.class.path.extended area:

    EMS_HOME/version_number/lib

  3. Save the mySwiftCheck.tra file.

Using the SwiftCheck Utility

You can use the SwiftCheck utility to parse and validate one or more SWIFT files.

To use the SwiftCheck utility:

    Procedure
  1. Open a command line and change from the current directory to the plug-in bin directory.

    cd TIB_ADSWIFT_HOME\bin
  2. Copy the SwiftCheck.tra file, rename it as mySwiftCheck.tra, and open the copied file in the text editor.

  3. Change the application.args property to include the metadata and validation options to use. For example:

    application.args -dataTIB_ADSWIFT_HOME/bin/data -set year -v    TIB_ADSWIFT_HOME/examples/SampleMT.txt
  4. Save the properties file and exit the text editor.

  5. On a command line, type the following command to start the utility:

    SwiftCheck --run --propFile mySwiftCheck.tra