Custom Configuration File

Since 16.9.26.0 version, Plexus Connect allows the use of a simple configuration file in a custom location. You can define the location by using the com.chemaxon.plexus.connect.configuration.propertiesFilePath system property. An example of its usage can be found below

java -Xmx2096m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dcom.chemaxon.plexus.connect.configuration.propertiesFilePath=/Users/myUser/.chemaxon/plexus-suite/config.properties -Dfile.encoding=UTF-8 -Duser.language=en -Dport=9000 -jar plexus-suite.war

Currently, the options which can be set in the file are:

plexus.sessionExpirationTimeSecs (default is 3600 seconds)
plexus.analysis.url 

These options can also be set in the nps.properties file which is a part of the downloaded *.war file. Also, it is possible to set these options as system properties at the time of starting Plexus. Please keep in mind that the system properties have the highest priority, followed by the custom properties file and the values saved in nps.properties have the lowest priority.

Example:

In nps.properties file the plexus.sessionExpirationTimeSecs property is kept as default =3600

In the custom.properties file the plexus.sessionExpirationTimeSecs property is set to 1800

If Plexus was started by the command shown before, the session would expire in 1800 seconds as the custom.properties would be taken in account. If the -Dplexus.sessionExpirationTimeSecs=60 would be added to the command, the session would expire in one minute.

If a non-existent file is defined in the com.chemaxon.plexus.connect.configuration.propertiesFilePath property a sample file is provided.