<?xml version="1.0" encoding="UTF-8"?>
<chapter version="5.0" xml:id="jonas-deployment-plans" 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">
  <title>Deployment plans in JOnAS 5</title>

  <section>
    <title>Initial repositories</title>

    <para>The <filename>conf/initial-repositories.xml</filename> file allows
    to add repositories to the list of availaible repositories at <xi:include
    href="../../variables.xml" xpointer="appserver" /> server startup.</para>

    <para>This file follows the same syntax as the repository list XML
    files.</para>
  </section>

  <section xml:id="jonas-resource-monitoring-service">
    <title>The resourcemonitor service</title>

    <para>There is one service that is related to deployment plans in JOnAS 5.
    <itemizedlist>
        <listitem>
          <para>the resource monitoring service, named
          <property>resourcemonitor</property> in the
          <filename>conf/jonas.properties</filename> file.</para>
        </listitem>
      </itemizedlist></para>

    <para>You can activate this service by adding it to the
    <property>jonas.services</property> list in
    <filename>conf/jonas.properties</filename>. For example: 
     <example>
        <title><property>jonas.service</property> with resourcemonitor service
        active</title>

        <literallayout>jonas.services  registry,jmx,jtm,db,security,wm,wc,resource,ejb2,ejb3,ws,web,ear,depmonitor,resourcemonitor  </literallayout>
      </example>will activate the resource monitoring service.</para>

    <para>This service is only useful if deployment plans with
    <varname>reloadable</varname> deployments are deployed.</para>

    <para>The <filename>conf/jonas.properties</filename> file permits to
    configure the following options: <itemizedlist>
        <listitem>
          <para><property>jonas.service.resourcemonitor.monitorInterval</property>:
          the time in milliseconds between two resource checks. If the option
          is not provided, this has a default value of 30 000 (30
          seconds)</para>
        </listitem>
      </itemizedlist></para>
  </section>
</chapter>
