By default, the StreamBase sample files are installed in:
-
On Windows:
C:\Program Files\StreamBase Systems\StreamBase.n.m\sample\... -
On UNIX:
/opt/streambase/sample/...
When you load a 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/ Windows XP: C:\Documents and Settings\username\My Documents\StreamBase Studion.mWorkspace\ Windows Vista: C:\Users\username\Documents\StreamBase Studion.mWorkspace\
To load a sample into StreamBase Studio:
-
From the top menu, select → .
-
Select one or more samples from the Load Sample Projects dialog, illustrated below.
The samples you load have the following characteristics:
-
StreamBase Studio creates a separate project for each sample.
-
Exception: for the
operatorsamples, Studio creates one project and all the individual operator's sample EventFlow applications are imported into the same project folder. -
You can reload any sample. If your workspace already has a copy of that sample, Studio creates a new copy, appending a number to the new copy's folder name. This lets you load several copies of the same sample to experiment in different ways.
-
If a sample contains a custom function or client application, Studio automatically loads those and any specified configuration settings onto StreamBase Server when you run the sample.
-
When you load a sample that contains JAR files, the JAR files are automatically used when you run the sample. The Java source files that created the JAR are included, so that you can see the code and experiment with it, but you do not need to build the JAR before running the sample. When Studio loads a JAR file as part of a sample, it automatically adds the StreamBase Client API to the project's Java build path.
A number of StreamBase samples, such as compliance and buffering, have
C++ and Java code that can be modified and rebuilt. In order to rebuild the C++
executables and Java JAR files on Windows, configure Microsoft Visual Studio as
follows:
-
Add the following StreamBase
includedirectories to the list of Include files in → → → :streambase-install-dir\include -
Add the Sun JDK's
bindirectory to the list of executable files.For example, add the following folder to the list:
C:\Program Files\Java\jdk1.6.0_04\bin
