wrapper.exit_code.error

Compatibilidad :3.5.31
Ediciones :Edición ProfesionaEdición EstándarEdición de la Comunidad
Plataformas :WindowsMac OSXLinuxIBM AIXFreeBSDHP-UXSolarisIBM 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 specifie 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

ADVERTENCIA

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.

NOTA

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

NOTA

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'.