World Map
Java Service Wrapper is the easiest way to make your product more reliable.
  • Free Trial
  • Buy Now
wrapper.exit_code.error Property

wrapper.exit_code.error

Compatibility :3.5.31
Editions :Professional EditionStandard EditionCommunity Edition
Platforms :WindowsMac OSXLinuxIBM AIXFreeBSDHP-UXSolarisIBM z/OSIBM z/Linux

When the Wrapper stops, it may either return an exit code of "0" to indicate that the process ended normally, or a positive number to indicate that there was an error. If the error occurs in the Java application, the Wrapper will return the exit code of the JVM. Otherwise the Wrapper may return its own exit code.

This property allows you to specifies the exit code to use when the Wrapper stops with an error that is not coming from the JVM. The default value is 1, with valid values in the range of 1 to 255.

This property can be used to distinguish the Wrapper exit code from other codes that the Java application may return.

Example:
wrapper.exit_code.error=101

WARNING

Depending on the operating system, several conventions exist to reserve some codes to special meanings. It is a good practice to avoid using them as wrapper.exit_code.error describes a general error.

Also make sure that changing the value of this property does not affect the behavior of any calling process that would use the exit code of the Wrapper.

NOTE

This property will only take effect after the configuration has been loaded.

NOTE

When querying the status of the application as a service on Windows, the Wrapper will return an exit code that does not depend on the value of this property. Please refer to the section 'Launching your application'.