LiveView Quick Start

This page provides start and stop instructions for running TIBCO LiveView Server using the Minimal sample.

Minimal Configuration Required

When a LiveView Server instance starts, its first task is to compile a set of provided configuration specifications into one or more LiveView data tables. On subsequent starts, LiveView Server recompiles only the configuration specifications that have changed, if any.

A LiveView table is a data table with a particular schema that is ready to accept a stream of incoming data and queries. In the absence of the configuration specifications for at least one data table, there is nothing for the LiveView Server to do, and it cannot start.

Thus, to start the LiveView Server even for a simple test requires some configuration. The LiveView installation provides a sample that illustrates the minimal configuration for LiveView, which is just enough to start and run the server. This smallest possible LiveView configuration requires a valid LiveView configuration file to define a data table.

LiveView configuration files are called lvconf files. All lvconf files that constitute a single LiveView project must reside in the same src/main/liveview folder. When you run a LiveView Server instance, you are running the configuration defined in the project folder that contains your lvconf files.

Loading the LiveView Minimal Sample

  1. Start StreamBase Studio.

  2. Select File>Load StreamBase Sample from Studio's top-level menu.

  3. In the text filter field, enter minimal to narrow the list of selections.

  4. Select the sample whose description is Shows the minimum configuration to start LiveView Server and press OK.

The sample loads into Studio with the project name sample_lv-sample-minimal.

Starting LiveView Server from StreamBase Studio

Follow the steps below to start LiveView Server running the Minimal sample. These steps apply equally to the Windows and macOS editions of StreamBase Studio.

  1. In the Minimal sample's LiveView Project Viewer, click the green Run button in the upper right corner of the viewer panel, next to the Help button. ()

  2. Studio opens the Console view, and begins to show messages from LiveView Server. After a few minutes, look for a Console view message that says:

    { Server Started } - 
    
    *** All tables have been loaded. LiveView is ready to accept client connections. ***
    
    

As an alternative, you can run a LiveView fragment project from the Run As menu:

  1. In the Project Explorer view, select the project's folder, sample_lv-minimal.

  2. Right-click and select Run As>LiveView Project from the context menu.

  3. Studio opens the Console view. Wait for the All tables have been loaded message.

As a third alternative, you can run a LiveView fragment project with Studio's Run button:

  1. In the Project Explorer view, select the project's folder, sample_lv-minimal.

  2. Click the Run button () in Studio's top-level menu bar.

  3. This opens the Run As dialog. Select LiveView Project and click OK.

  4. Studio opens the Console view. Wait for the All tables have been loaded message.

Notice that LiveView Server runs in Studio independently of any StreamBase Server run or debug session you might want to run at the same time. The only constraint are the port numbers, which must be different for each running server. You can configure StreamBase Server to automatically try another port if Studio's default port, 10000, is in use by LiveView Server.

You can also run two or more instances of LiveView Server by editing one instance's launch configuration to use different ports.

Stopping LiveView Server from StreamBase Studio

If you started LiveView Server from StreamBase Studio, stop it by clicking the red and blue square Terminate LiveView Fragment button () in Studio's top-level menu bar.

Stopping LiveView Server from the Command Prompt

You can also use the lv-client shutdown command to stop the server. Open a separate terminal window on macOS or a StreamBase Command Prompt on Windows, and enter:

lv-client shutdown

This command as shown presumes that LiveView Server is running on the default StreamBase and LiveView ports. Use the -p or -u options to specify a different port or URL. See lv-client help for more.