Calling an Embedded StreamBase Server from Java

Introduction

This sample illustrates how to call a StreamBase Server instance embedded in a running JVM.

This sample contains an Eclipse cheat sheet that opens when you import the sample into StreamBase Studio. Follow the steps described in the cheat sheet to use the sample.

Importing This Sample into StreamBase Studio

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

  • From the top menu, select FileLoad StreamBase Sample.

  • In the search field, type calling to narrow the list of samples.

  • Select Calling StreamBase Server from Java from the Extending StreamBase category.

  • 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.

Important

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 the permission problems that can occur when trying to work with the initially installed location of the sample. The default workspace location for this sample is:

studio-workspace/SB_EmbeddedServer

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

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

streambase-install-dir/sample/SBEmbeddedServer

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