wrapper.java.mainclass

Compatibilidad :1.0.0
Ediciones :Edición ProfesionaEdición EstándarEdición de la Comunidad
Plataformas :WindowsMac OSXLinuxAlpine LinuxFreeBSDSolarisIBM z/Linux

Clase que se ejecutará cuando el Wrapper inicie la aplicación. El valor de esta propiedad depende de cuál de los Métodos de Integración se haya seleccionado. En la mayoría de los casos, esta NO es la clase principal de su aplicación.

Ejemplo: (Método de Integración 1: "WrapperSimpleApp")
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
Ejemplo: (Método de Integración 2: "WrapperStartStopApp")
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp
Ejemplo: (Método de Integración 4: "WrapperJarApp")
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp

Si especifica una clase principal que NO inicializa correctamente la clase WrapperManager, el Wrapper agotará el tiempo de espera y finalizará la JVM una vez transcurrido el tiempo de espera de inicio. Consulte la propiedad wrapper.startup.timeout para obtener más detalles. Cuando esto ocurra, verá un mensaje similar al siguiente:

------------------------------------------------------------------------
Advice:
The Wrapper consists of a native component as well as a set of classes
which run within the JVM that it launches.  The Java component of the
Wrapper must be initialized promptly after the JVM is launched or the
Wrapper will timeout, as just happened.  Most likely the main class
specified in the Wrapper configuration file is not correctly initializing
the Wrapper classes:
    com.myapp.Main
While it is possible to do so manually, the Wrapper ships with helper
classes to make this initialization processes automatic.
Please review the integration section of the Wrapper's documentation
for the various methods which can be employed to launch an application
within the Wrapper:
    http://wrapper.tanukisoftware.org/doc/english/integrate.html
------------------------------------------------------------------------

Referencia: Parámetros