This topic describes how to run the TIBCO StreamBase® for CME MDP3 Adapter sample application, which illustrates how to use the adapter to access CME MDP feeds. For more information on this adapter, see CME MDP3 Adapter.
This sample includes a CME MDP3 adapter, which by default connects to channel 311 of CME's NRCert testing environment and is assumed to already be running and accessible from your machine. Once launched, use the sample to access market data messages from that channel.
This sample contains the following files:
The sample EventFlow application,
subscriptions.csv, an optional file containing the IDs and names of instruments to which to subscribe upon connection.
The steps to run this sample in Studio are as follows:
In order run, the adapter requires that the open-source Java Market Data Handler for CME Market Data (MDP 3.0) from EPAM Systems be installed on development and deployment machines that are expected to run StreamBase applications that call this adapter. You can obtain the Data Handler software from public.tibco.com.
Once you download the above zip file, extract its contents to a temporary location and copy the following JAR files to your StreamBase installation:
<streambase-install>/lib/ext. If any files are already present it is safe to either leave them unchanged or overwrite them.
You will also need to download
templates_FixBinary.xml(configuration files downloaded from CME's FTP site, see https://www.cmegroup.com/confluence/display/EPICSANDBOX/MDP+3.0+-+FTP+Site+Information) and place them in the project's top-level directory.
In the Package Explorer, double-click to open the
Make sure the application is the currently active tab in the EventFlow editor, then click the Run button. This opens the SB Test/Debug perspective and starts the application.
The adapter is expected to connect to the channel's various feeds and the data should start flowing.
When done, press F9 or click the Stop Running Application button.
In StreamBase Studio, import this sample with the following steps:
From the top-level menu, select→ .
cmeto narrow the list of options.
Select CME MDP3 from the Global category.
StreamBase Studio creates a project for the adapter in your current Studio workspace.
When you load the sample into StreamBase Studio, Studio copies the sample project's files to your Studio workspace, which is normally part of your home directory, with full access rights.
Load this sample in StreamBase Studio, and thereafter use the Studio workspace copy of the sample to run and test it, even when running from the command prompt.
Using the workspace copy of the sample avoids permission problems. The default workspace location for this sample is:
See Default Installation Directories for the default location of
studio-workspace on your system.