Error Streams Sample

This sample consists of a Studio project that contains three application files (dividemodule.sbapp, dividetoplevel.sbapp and outoforder.sbapp), a customized StreamBase Server configuration file (sbd.sbconf), and a small amount of Java code used by the applications as a custom function. This sample is designed to be walked through using a Cheat Sheet in StreamBase Studio that guides you step by step.

The goal of this sample is to demonstrate various use cases for error streams in StreamBase applications.

Importing This Sample into StreamBase Studio

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

  • From the top menu, select FileLoad StreamBase Sample.

  • Select this sample from the Applications list.

  • Click OK.

StreamBase Studio creates a project for the sample.

Sample Location

By default, the sample files are installed in:

  • On Windows: C:\Program Files\StreamBase Systems\StreamBase.n.m\sample\errorstreams

  • On UNIX: /opt/streambase/sample/errorstreams

When you load the sample into StreamBase Studio, Studio copies the sample project's files to your Studio workspace. StreamBase Systems recommends that you use the workspace copy of the sample, especially on UNIX, where you may not have write access to /opt/streambase. In the default installation, the path to this sample in your Studio workspace is:

UNIX:       
  ~/streambase-studio-n.m-workspace/sample_errorstreams
Windows XP:
  C:\Documents and Settings\username\My Documents\StreamBase Studio n.m Workspace\
      sample_errorstreams
Windows Vista:
  C:\Users\username\Documents\StreamBase Studio n.m Workspace\
      sample_errorstreams

Running the Error Streams Sample in StreamBase Studio

This sample uses a StreamBase Studio cheat sheet to provide an interactive walk-through of the Error Ports and Error Streams features.

  1. In StreamBase Studio, select HelpCheat Sheets.

  2. In the Cheat Sheet Selection dialog, open the StreamBase Studio folder, select Sample - Error Streams, and click OK.

  3. Follow the instructions on the cheat sheet Introduction page.