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-level menu, select File>Import Samples and Community Content.

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

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

  • Click Import Now.

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 permission problems. The default workspace location for this sample is:

studio-workspace/SB_EmbeddedServer

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