Running the Data Conversion Plug-in Sample

An RPG sample and corresponding file are provided with a TIBCO ActiveMatrix BusinessWorks project. You can run the project to interchange data of any form between platforms.

The source for the sample exists both in the TIBCO EMS Client for IBM i product library and in the Integrated File System (IFS), and is also provided pre-compiled in the product library:

EMI_HOME/samples/dcp/rpg/EMSRDCP1.rpgle

You can find the TIBCO ActiveMatrix BusinessWorks project in the EMI_HOME/samples/dcp/am_bw/AM_BW_Mainframe_Sample_Project.zip file.

Procedure

  1. Transfer the AM_BW_Mainframe_Sample_Project.zip file from the IBM i machine to the machine where you are running TIBCO Designer.
  2. Extract the ZIP file.
  3. Open the project in TIBCO Designer.
  4. Change the value of the JmsProviderUrl global variable to the name of the server where your EMS server is configured and running. For example, tcp://glatona-dt:7222.
  5. On the Tester tab, select and load the Receive-Send RPG Bytes message from the Process Examples.

    This places the project in receive mode.

  6. Switch to the IBM i machine, and run the following command:
    QSH CMD('system "CALL PGM(TIBEMSLIB/EMSRDCP1) PARM(''server:port '')"')

    where server:port is the name of the server and port where EMS is configured and running, as specified in Step 4.

    This program sends a bytes message made up of various data types and content to the BusinessWorks project and waits for a response with modified data from BusinessWorks.