Skip to main content

Summary

How to specify a properties file for VisiBroker application, or service

Setting VisiBroker properties in a file

Setting VisiBroker properties via the command-line

Environment

VisiBroker 8.5.x

All Supported Platforms

Question/Problem Description

A VisiBroker application, or service, may require multiple properties to be set at launch. This can be achieved with command-line arguments.

Resolution

It is possible to pass properties to the service via the command line in the following format:

-D<property_name>=<property_value>

For example:

./visinotify -Dvbroker.log.enable=true -Dvbroker.log.logLevel=debug

Alternatively, properties can be specified in a plain-text file, with entries such as:

# Sample properties file
vbroker.log.enable=true
vbroker.log.logLevel=debug

The location of this properties file is set by the property "ORBpropStorage", which in turn can be passed as a command-line argument:

./visinotify -DORBpropStorage=notify.properties

In this way, VisiBroker applications' and services' properties can be set in text files defined at runtime.


#properties
#arguments
#Security
#VisiBroker