IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

API standards et tierces Java Discussion :

Java Service


Sujet :

API standards et tierces Java

  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2006
    Messages
    198
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Février 2006
    Messages : 198
    Par défaut Java Service Wrapper
    Bonjour,

    est ce que qqun pourrait m'expliquer comment rendre une application intallable comme service windows
    j'avais trouvé Java Service Wrapper mais je ne comprend pas trop comment ça marche.

    merci

  2. #2
    Expert confirmé
    Avatar de sinok
    Profil pro
    Inscrit en
    Août 2004
    Messages
    8 765
    Détails du profil
    Informations personnelles :
    Âge : 45
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Août 2004
    Messages : 8 765
    Par défaut
    Ba dans ce cas le mieux est de se référer aux exemples d'intégration proposés sur le site qui sont exhaustif, bien et surement plus clairs qu'aucun de nous ne pourra l'expliquer

    http://wrapper.tanukisoftware.org/do...integrate.html

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2006
    Messages
    198
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Février 2006
    Messages : 198
    Par défaut
    mwi mais bon, par exemple dans le fichier wrapper.conf je dois y mettre ma classe main, mais il ne la trouve pas. je ne sais pas trop comment l'écrire non plus, si qqun le sait??

  4. #4
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2006
    Messages
    198
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Février 2006
    Messages : 198
    Par défaut
    mon fichier wrapper.conf

    #********************************************************************
    # Wrapper Properties
    #********************************************************************
    # Java Application
    wrapper.java.command=java
    # Java Main class. This class must implement the WrapperListener interface
    # or guarantee that the WrapperManager class is initialized. Helper
    # classes are provided to do this for you. See the Integration section
    # of the documentation for details.
    wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
    # Java Classpath (include wrapper.jar) Add class path elements as
    # needed starting from 1
    wrapper.java.classpath.1=../lib/wrapper.jar
    wrapper.java.classpath.2=../lib/jdic.jar
    wrapper.java.classpath.3=../lib/jdic_stub.jar
    wrapper.java.classpath.4=../lib/log4j-1.2.9.jar
    wrapper.java.classpath.5=../lib/lucene-core-1.9.1.jar
    wrapper.java.classpath.6=../lib/packager.jar
    wrapper.java.classpath.7=../lib/PDFBox-0.7.2.jar
    wrapper.java.classpath.8=../lib/poi-2.5.1-final-20040804.jar
    # Java Library Path (location of Wrapper.DLL or libwrapper.so)
    wrapper.java.library.path.1=../lib
    # Java Additional Parameters
    #wrapper.java.additional.1=Dprogram.name=index.bat
    # Initial Java Heap Size (in MB)
    #wrapper.java.initmemory=3
    # Maximum Java Heap Size (in MB)
    wrapper.java.maxmemory=256
    # Application parameters. Add parameters as needed starting from 1
    wrapper.app.parameter.1=be.microresearch.frame.MainIndex
    #********************************************************************
    # Wrapper Logging Properties
    #********************************************************************
    # Format of output for the console. (See docs for formats)
    wrapper.console.format=PM
    # Log Level for console output. (See docs for log levels)
    wrapper.console.loglevel=INFO
    # Log file to use for wrapper output logging.
    wrapper.logfile=../logs/wrapper.log
    # Format of output for the log file. (See docs for formats)
    wrapper.logfile.format=LPTM
    # Log Level for log file output. (See docs for log levels)
    wrapper.logfile.loglevel=INFO
    # Maximum size that the log file will be allowed to grow to before
    # the log is rolled. Size is specified in bytes. The default value
    # of 0, disables log rolling. May abbreviate with the 'k' (kb) or
    # 'm' (mb) suffix. For example: 10m = 10 megabytes.
    wrapper.logfile.maxsize=0
    # Maximum number of rolled log files which will be allowed before old
    # files are deleted. The default value of 0 implies no limit.
    wrapper.logfile.maxfiles=0
    # Log Level for sys/event log output. (See docs for log levels)
    wrapper.syslog.loglevel=NONE
    #********************************************************************
    # Wrapper Windows Properties
    #********************************************************************
    # Title to use when running as a console
    wrapper.console.title=Indexation Application
    #********************************************************************
    # Wrapper Windows NT/2000/XP Service Properties
    #********************************************************************
    # WARNING - Do not modify any of these properties when an application
    # using this configuration file has been installed as a service.
    # Please uninstall the service before modifying this section. The
    # service can then be reinstalled.
    # Name of the service
    wrapper.ntservice.name=indexation
    # Display name of the service
    wrapper.ntservice.displayname=Indexation Application
    # Description of the service
    wrapper.ntservice.description=Indexation Application Description
    # Service dependencies. Add dependencies as needed starting from 1
    wrapper.ntservice.dependency.1=
    # Mode in which the service is installed. AUTO_START or DEMAND_START
    wrapper.ntservice.starttype=AUTO_START
    # Allow the service to interact with the desktop.
    wrapper.ntservice.interactive=false

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Février 2006
    Messages
    198
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Février 2006
    Messages : 198
    Par défaut
    Quelq'un a-til déjà utilisé java service wrapper??

Discussions similaires

  1. Réponses: 0
    Dernier message: 22/08/2012, 13h26
  2. Java Service Wrapper et start-stop-deamon
    Par ruddy32 dans le forum JOnAS
    Réponses: 1
    Dernier message: 29/11/2009, 22h13
  3. Réponses: 0
    Dernier message: 18/12/2008, 15h57
  4. JBoss 4.0.5 et Java Service wrapper
    Par Redouane81 dans le forum Wildfly/JBoss
    Réponses: 2
    Dernier message: 13/09/2007, 11h03

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo