Once Input Adapter Sample


This sample demonstrates the TIBCO StreamBase® Once Input Adapter, an input adapter that starts up and sends one tuple as output.

Running this Sample in StreamBase Studio

  1. In the Package Explorer, double-click to open the Once.sbapp application. Make sure the application is the currently active tab in the EventFlow Editor.

  2. Click the Run button. This opens the SB Test/Debug perspective and starts the application.

  3. The Application Output shows the timestamp tuple that is sent on startup as output, which is similar to the following:

  4. When done, press F9 or click the Stop Running Application button.

About This Sample and Terminal Windows

The Once adapter cannot be demonstrated using terminal windows, because it sends its single tuple as soon as the application starts in StreamBase Server. By the time we might be able to start a dequeue session to see the output on OutputStream1, the single tuple event has already occurred.

Importing This Sample into StreamBase Studio

In StreamBase Studio, import this sample with the following steps:

  • From the top menu, click FileLoad StreamBase Sample.

  • Select this sample from the Embedded Input Adapters list.

  • Click OK.

StreamBase Studio creates a single project containing the sample files.

Sample Location

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.

In the default TIBCO StreamBase installation, this sample's files are initially installed in:


See Default Installation Directories for the default location of studio-workspace on your system.