<?xml version="1.0" encoding="UTF-8"?>
<section version="5.0" xml:id="services.wc.config" xml:lang="en"
         xmlns="http://docbook.org/ns/docbook"
         xmlns:xlink="http://www.w3.org/1999/xlink"
         xmlns:xi="http://www.w3.org/2001/XInclude"
         xmlns:svg="http://www.w3.org/2000/svg"
         xmlns:mml="http://www.w3.org/1998/Math/MathML"
         xmlns:html="http://www.w3.org/1999/xhtml"
         xmlns:db="http://docbook.org/ns/docbook">
  <info>
    <title>wc service configuration</title>
  </info>

  <para>The <emphasis role="bold">wc</emphasis> service allows to clean up
  periodically the work directory of the <xi:include
  href="../../variables.xml" xpointer="appserver" /> server. This service
  don't need to be defined in the list of JOnAS services as it is
  automatically started when JOnAS is in development mode.</para>

  <para>During the deployment process of an application, a specific working
  directory is created and associated to the application. After a defined
  time, the clean task tries to delete working directories of applications
  which have been undeployed. Note that the clean task is already executed at
  startup of the <xi:include href="../../variables.xml"
  xpointer="appserver" /> server.</para>

  <para>Here is the part of <filename>jonas.properties</filename> concerning
  the <emphasis role="bold">wc</emphasis> service:</para>

  <para xml:id="screen_wc_service"><screen>###################### JOnAS WorkCleaner service configuration
#
#  Set the name of the implementation class of the wc service
jonas.service.wc.class    org.ow2.jonas.workcleaner.internal.JOnASWorkCleanerService

#  Set the clean period in seconds
jonas.service.wc.period   300                                     <co
        xml:id="period" />
</screen><calloutlist>
      <callout arearefs="period">
        <para>Define the period between two executions of the clean task (in
        seconds)</para>
      </callout>
    </calloutlist></para>
</section>
