wrapper.java.mainclass

Compatibilité :1.0.0
Éditions :Édition ProfessionnelleÉdition StandardÉdition Community
Plateformes :WindowsMac OSXLinuxAlpine LinuxFreeBSDSolarisIBM z/Linux

Classe à exécuter lorsque le Wrapper démarre l'application. La valeur de cette propriété dépend de la Méthode d'intégration qui a été sélectionnée. Dans la plupart des cas, il ne s'agit PAS de la classe principale de votre application.

Exemple : (Méthode d'intégration 1 : « WrapperSimpleApp »)
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
Exemple : (Méthode d'intégration 2 : « WrapperStartStopApp »)
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperStartStopApp
Exemple : (Méthode d'intégration 4 : « WrapperJarApp »)
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperJarApp

Si vous spécifiez une classe principale qui n'initialise PAS correctement la classe WrapperManager, alors le Wrapper expirera et terminera la JVM après l'expiration du délai d'attente au démarrage. Veuillez consulter la propriété wrapper.startup.timeout pour plus de détails. Lorsque cela se produit, vous verrez un message comme le suivant :

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

Référence : Paramètres