Skip to content

Jetstream Application

shmurthy62 edited this page Feb 11, 2015 · 2 revisions

To illustrate how easy it is to create an application and test it in your development environment follow the jetstreamdemo project in Jetstream git repo.

You will notice there is no main to write in your app. The framework provides you a class named JetstreamApplication. You provide this class as your application class to java run time. Each application must have a unique name and a configuration version. Pass the following command line options to the application

   -n <application name>
   -cv <configuration version>
   -p <Management TCP port>

You should provide the same application name and configuration version provided here to the configuration management tool in order to provision your application dynamically. The "-p" option is optional - the default management port is 9999. If you run multiple instances of the application in the same node be sure to use the "-p" option to set a different management port for each instance.

A Jetstream Application archetype is provided as a reference implementation. You can download this archetype and create your own application. The archetype has setup a folder structure. It is best to preserve the folder structure so that you can leverage some of the scripts and tooling that come with the archetype.

[Next : Creating a new jetstream Application] (../wiki/Jetstream-Archetype)

Clone this wiki locally