Creating New Deployment Files

Follow these steps to generate a new empty StreamBase deployment file in StreamBase Studio:

  1. Optional. First select the name of an EventFlow or StreamSQL file in the Package Explorer to generate a deployment file for that module.

  2. Open the New StreamBase Server Configuration File wizard using one of the following methods:

    • Select FileNewStreamBase Deployment File.

    • Click the drop-down arrow next to the New toolbar button (), and select StreamBase Deployment File from the drop-down menu.

    • Right-click anywhere in the Package Explorer, and select NewStreamBase Deployment File from the context menu.

    • With the cursor in any Studio view, press Ctrl+N to open the New dialog. Select StreamBase Deployment File, and click Next.

    • With the cursor in any Studio view, press Alt+Shift+N to open the FileNew menu at the cursor location. Select StreamBase Deployment File, and click Next.

  3. In the New StreamBase Deployment File wizard, select the project folder where you want the file to be created.

  4. Enter the file name to create. There is no default basename, but the wizard enforces adding the .sbdeploy extension to any name you specify.

  5. Click Finish. A default deployment file is created in the specified project. Studio opens the new file in the Deployment File Editor.

    Note

    The Advanced button lets you create the new file as a link to an existing deployment file anywhere in the file system. This feature is rarely useful for Studio applications.

If you start the wizard without selecting a file name, Studio generates the following blank deployment file:

<?xml version="1.0" encoding="UTF-8"?>
<deploy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://www.streambase.com/schemas/sbdeploy/">
    <runtime>
    </runtime>
</deploy>

If you start the wizard by selecting an EventFlow or StreamSQL file name, the wizard fills in the selected module in an <application> element, placing the module in a container named default like this example:

<?xml version="1.0" encoding="UTF-8"?>
<deploy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="http://www.streambase.com/schemas/sbdeploy/">
  <runtime>
    <application container="default" module="MACD.sbapp"/>
  </runtime>
</deploy>

See Deployment File Editor to learn about the autocompletion features of the Deployment File Editor.

See StreamBase Deployment File XML Reference for the syntax of StreamBase deployment files.