TIBCO Streaming applications can be installed as a Windows service. This page assumes familiarity with Windows services concepts and general architecture. Once installed according to this page, use native Windows tools to manage the service.
Use the epadmin install systemservice command to install StreamBase applications to run as a Windows service.
Specify the Windows user name to run the service when installing the service. This
specified user must have the
variable set. By default, this user is the SYSTEM user; specify the
username parameter to run the servicea as a different user.
The epadmin install systemservice command takes several parameters that can be grouped into the following categories:
Specify the StreamBase application to run, including the application archive file, node deploy configuration, and substitution file, if used.
Specify the node to use, including node name and node directory.
Specify Windows service information, including the service name, service startup type, and so on.
Gather the required information in all three categories before experimenting with this command. See epadmin-systemservice(1) for guidance on using the install systemservice and remove systemservice commands.
The startup parameters for a service are stored in the Windows registry using the following key when the service is installed. (The following long line wraps to the next for clarity.)
node-name\TIBCO Software Inc.\Settings\sb-cep\
node-nameis the fully qualified service name of the node running the application.
win-service-nameis the Windows service name specified when the application was installed as a service.
You can change these parameters directly in the registry before a service is started:
||Absolute path to application archive.|
||Absolute path to node deploy configuration file.|
||Absolute path to node directory.|
Fully qualified node service name (
||Absolute path to a substitution file for the node.|
The installed service has the following behavior when starting and stopping services using native Windows tools:
start — install the node if not installed, then start the node.
stop — stop and quiesce the node.
Application warning and error messages are logged by default to the Windows event
log. See Windows Event Log
Appender to understand how to configure a
logback.xml file to customize the log messages emitted. Then
logback.xml in your EventFlow fragment
project in its
src/main/resources folder. When that
fragment is built into a StreamBase application archive and loaded as a Windows
service as described on this page, the application begins to emit log messages in
your specified format to the Windows Event Log.
Windows services are removed using the epadmin remove systemservice command as described on epadmin-systemservice(1).