InfoReach TMS Adapter Sample

This sample demonstrates the use of the StreamBase InfoReach TMS Adapter.

Installed Sample File Locations

By default, the sample files are installed in:

On Windows

C:\Program Files\StreamBase Systems\StreamBase.n.m\sample\adapter\embedded\inforeach-tms\

On UNIX

/opt/streambase/sample/adapter/embedded/inforeach-tms/

Preparing to Run the Sample

  1. Ensure the InfoReach TMS system is available on your system.

Running the Sample in StreamBase Studio

  1. In the Package Explorer, double-click to open the inforeach-tms.sbapp application.

  2. Open the inforeach-tms.sbapp and double-click the TMS adapter in the EventFlow diagram to display the adapter's settings. Make sure the TMS Installation Directory value is correct for your system.

  3. Click the Run StreamBase Application (Default Launch) button. (Not the Run button.) This opens the Test/Debug perspective and starts the application.

  4. In the Test/Debug Perspective, open the Console view. If it is not already open: select WindowShow ViewConsole. If the adapter connects successfully to TMS, you see several pages of messages as the TMS client-side system is started, after which you see the following messages:

    [notice] StreamBase InfoReach TMS Adapter: TMS system started

    [notice] sbd at hostname:10000; pid=4568; Listening

  5. As portfolio, target, and order messages are sent by TMS, tuples are emitted on the corresponding output stream. In the Application Output view, select one of the streams to observe the incoming tuples.

  6. Click RunStop StreamBase Application (F9).

Running the Sample in Terminal Windows

Open two StreamBase Command Prompt or terminal windows.

  1. In window 1, type:

    sbd inforeach-tms.sbapp

    If the adapter connects successfully to TMS, you see several pages of messages as the TMS client-side system is started, then you see the following messages:

    [notice] StreamBase InfoReach TMS Adapter: TMS system started

    [notice] sbd at hostname:10000; pid=4568; Listening

  2. In window 2, type:

    sbc dequeue -v

    This window displays the tuples dequeued from the adapter's output ports as portfolio, target, and order messages are sent by TMS.

  3. Type Ctrl-C in each window to stop the StreamBase application and the dequeuer.