Contents
This sample demonstrates the use of the StreamBase InfoReach TMS Adapter.
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/
-
In the Package Explorer, double-click to open the
inforeach-tms.sbappapplication. -
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.
-
Click the
Run StreamBase Application (Default Launch) button.
(Not the Run button.) This opens the
Test/Debug perspective and starts the application.
-
In the Test/Debug Perspective, open the Console view. If it is not already open: select → → . 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 -
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.
-
Click → (F9).
Open two StreamBase Command Prompt or terminal windows.
-
In window 1, type:
sbd inforeach-tms.sbappIf 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 -
In window 2, type:
sbc dequeue -vThis window displays the tuples dequeued from the adapter's output ports as portfolio, target, and order messages are sent by TMS.
-
Type Ctrl-C in each window to stop the StreamBase application and the dequeuer.
