Running Your First StreamBase Application

Purpose

In this topic we will run the application that we created earlier in StreamBase Studio, so that we can send test data through it (in the next topic).

A major part of this topic involves defining a launch configuration for your application. This is because it's the first time we've run a StreamBase application. To run any StreamBase application, you must associate it with a StreamBase launch configuration. You can create and save any number of launch configurations, each defining a different set of Java application runtime parameters. Once it is defined, you can simply choose the appropriate launch configuration to run an application.

To Run Your Application

  1. In the Package Explorer, select the MyFirstApp.sbapp EventFlow application. If you created an StreamSQL version earlier in this tutorial, you could select MyFirstApp.ssql instead.

  2. Click the launch default configuration button Run StreamBase Application (Default Launch) button. You should see several things happening:

    • A brief message confirms that your StreamBase Application is running, and that it is waiting for the server to accept connections.

      A StreamBase application is always run by the StreamBase Server. If you are running locally, it is StreamBase Studio's Server on your system; if you are running remotely, the connection waits for your remote StreamBase Server to start.

    • When the connection is made to the server, a Console opens displaying a message, in red text, that the sbd server is listening. This means that it is waiting for input from the application. The message also shows the URI and port used for the server connection, and its process id. For example:

      [notice] sbd at workstation.example.com:43130; pid=7939; Listening
      

      The Console continues to all output from the running sbd server, such as status and any errors.

    • A reminder is displayed informing you that running applications in StreamBase Studio do not support high data rates. After all, StreamBase Studio is an authoring and testing tool that imposes a certain amount of overhead; the highest data rates are normally seen in deployed applications, run by the sbd server without StreamBase Studio.

    • A dialog informs you that launching an application normally switches StreamBase Studio from the Authoring perspective to the Test/Debug perspective, and prompts you to confirm this action.

  3. Click OK. StreamBase Studio switches to the Test/Debug perspective, where you will be able to send data to the application and simulate its run-time behavior.

Note

You can also run your application with sbd from a terminal window while working in StreamBase Studio. However, that method is beyond the scope of this tutorial. This and many other topics are covered in the other sections of StreamBase Help.

Summary and Next Steps

In this topic you have learned how to start an application in StreamBase Studio. In the next topic you will feed test data through your application and observe the output.

Click Next to go to the next topic.

Back to Top ^