World Map
Java Service Wrapperは、御社Javaアプリケーション製品の安定した信頼性を高める最短最善の方法です。
  • Free Trial
  • Buy Now
wrapper.exit_code.error Property

wrapper.exit_code.error

対応バージョン :3.5.31
対応エディション :プロフェッショナル版スタンダード版コミュニティー版
対応プラットフォーム :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

警告

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.

注意

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

注意

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