Project

General

Profile

Is it possible to have properties in init.properties available to all components?

Igor Khomenko
Added about 4 years ago

There is a way to configure a component with some properties http://docs.tigase.org/tigase-server/snapshot/Development_Guide/html/#cil2

Is it possible to have properties in init.properties available to all components?


Replies (2)

Added by Wojciech Kapcia TigaseTeam about 4 years ago

You can use configuration like the general --sm-plugins and so on - basically --<property_name>=<property_value> which will be turned into JVM property, hence accessible via @System.getProperty();@.

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 4 years ago

One downside of using system wide property is, if you change the property at runtime, the change is not pushed to the component or any other piece of code using it. A component specific property is pushed to the component if changed at runtime.

    (1-2/2)