Creating Your First StreamBase Project

Purpose

In this topic, we will create a new StreamBase project. StreamBase Studio uses projects to store applications and their associated files.

Create a Project and Generate an Application

  1. Open the New StreamBase Project wizard: click the New StreamBase Project button New StreamBase Project button near the top of the Authoring perspective.

  2. Type MyFirstApp in the Project name field.

    StreamBase new project
  3. By default, StreamBase Studio will create your project in your current workspace. Also notice the default options to create an empty EventFlow application and an empty StreamSQL application. We will use both of those applications later in the tutorial, so accept these settings.

  4. Under the option to create an EventFlow Application file, check the option, and open it now.

  5. Uncheck the option to create a server configuration file, because we will not be changing the default configuration settings for the StreamBase server.

  6. Finally, leave the Java Support option unchecked, because we will not be using Java components in our first application.

  7. Click Finish. When a confirmation message is diplayed, click OK to dismiss the confirmation window.

Discussion

You should notice:

  • The New StreamBase Project wizard populates the Package Explorer with a project folder using the name you entered, and also creates the two applications. Both are assigned the same name as the project, with .sbapp and .ssql extensions.

  • The empty EventFlow application is opened in the EventFlow Editor; the StreamSQL application is not, because you did not select the option to open it automatically open it.

  • The Palette view, which was formerly empty, is now filled with icons. The icons represent all the different kinds of components that you can build an application with in the graphical EventFlow Editor, as we will do in a later topic.

StreamBase initial Package Explorer example

Where Do The Project Files Reside?

You now have a project to work in that, and a stub application. Project files are stored in an Eclipse workspace, by default in the following directory:

On Windows

C:\Documents and Settings\username\StreamBase Studio n.m Workspace\

On UNIX

your-home-directory/streambase-studio- n.m-workspace/

where n.m is the installed StreamBase version number.

You can have multiple StreamBase workspaces. To change to a different workspace (or to create a new one), click FileSwitch Workspace, and choose a directory.