How to structure LiveView projects in StreamBase Studio

How to structure LiveView projects in StreamBase Studio

book

Article ID: KB0075191

calendar_today

Updated On:

Products Versions
TIBCO Live Datamart 2.x

Description

How should my LiveView project be structured in Studio? Do all my table configurations need to be in the same directory? Will any EventFlow applications defined in project folders be started when I issue the lv-server run command?

Issue/Introduction

How to structure LiveView projects in StreamBase Studio

Resolution

The only requirement is that all lvconf files that constitute a single LiveView project must reside in the same project folder. When you run a LiveView Server instance, you are running the configuration defined in the project folder that contains your lvconf files.

Any EventFlow applications that you intend to use for loading LiveView tables need to have their own .lvconf configuration defined in the project. The ItemsDataSource.lvconf from the "Hello LiveView" sample provides an example of this. Any other EventFlow applications in the project will not be automatically started when the lv-server run command is issued.

Also note that even if you define a .lvconf configuration for an EventFlow application which is not referenced in any other LV table configurations as a <data-source>, that application will still be started (although not used to load any tables) when the lv-server run command is issued.