User: oleg    
  Date: 00/10/03 05:06:21

  Modified:    manual   adv_config.html
  Log:
  Added directions for configuring incremental file logging and date/time formats
  
  Revision  Changes    Path
  1.7       +76 -62    jbossweb/manual/adv_config.html
  
  Index: adv_config.html
  ===================================================================
  RCS file: /products/cvs/ejboss/jbossweb/manual/adv_config.html,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- adv_config.html   2000/09/30 13:58:28     1.6
  +++ adv_config.html   2000/10/03 12:06:21     1.7
  @@ -56,11 +56,11 @@
   <pre>
   jdbc.drivers=oracle.jdbc.driver.OracleDriver,com.sybase.jdbc2.jdbc.SybDriver
   </pre>
  -       <p>The next time you start jBoss, you should see output like the
  -         following listing each driver that was loaded.  If instead you
  -         see an error for the driver (also shown below), make sure that
  -         you installed the required ZIPs and/or JARs to the
  -         <strong>lib/ext</strong> directory.</p>
  +      <p>The next time you start jBoss, you should see output like the
  +        following listing each driver that was loaded.  If instead you
  +        see an error for the driver (also shown below), make sure that
  +        you installed the required ZIPs and/or JARs to the
  +        <strong>lib/ext</strong> directory.</p>
   <pre>
   [JDBC] Loaded JDBC-driver:oracle.jdbc.driver.OracleDriver
   [JDBC] Could not load driver:com.sybase.jdbc2.jdbc.SybDriver
  @@ -145,17 +145,17 @@
   &lt;/MLET&gt;
   </pre>
   
  -     <p>Second, you must add a section to <code>jboss.jcml</code> for
  -       each pool.  This declares all the parameters for the pool, such as
  -       the size, username and password to use, etc.  The parameters will
  -       be covered in detail next.  The block you need to add is shown
  -       below.  You only need to add lines for the parameters you want to
  -       override - anything you want to leave as the default you can omit.
  -       jBoss will add all those lines in when it runs, so you can see the
  -       default values.  The example below is a simple configuration with
  -       only the JDBC URL, user name, and password.  The one thing you
  -       need to change besides the parameter names and values is the pool
  -       name in the first line:</p>
  +    <p>Second, you must add a section to <code>jboss.jcml</code> for
  +      each pool.  This declares all the parameters for the pool, such as
  +      the size, username and password to use, etc.  The parameters will
  +      be covered in detail next.  The block you need to add is shown
  +      below.  You only need to add lines for the parameters you want to
  +      override - anything you want to leave as the default you can omit.
  +      jBoss will add all those lines in when it runs, so you can see the
  +      default values.  The example below is a simple configuration with
  +      only the JDBC URL, user name, and password.  The one thing you
  +      need to change besides the parameter names and values is the pool
  +      name in the first line:</p>
   <pre>
   &lt;mbean name="DefaultDomain:service=XADataSource,name=<b>PoolName</b>"&gt;
       &lt;attribute 
name="<b>URL</b>"&gt;<b>jdbc:oracle:thin:@serverhostname:1521:ORCL</b>&lt;/attribute&gt;
  @@ -304,20 +304,20 @@
         <li>Oracle
           <ul>
             <li>lib/ext: <a 
HREF="http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm">classes12.zip</a></li>
  -       <li>jboss.properties
  +      <li>jboss.properties
   <pre>
   jdbc.drivers=oracle.jdbc.driver.OracleDriver
   </pre>
  -       </li>
  -       <li>jboss.conf
  +      </li>
  +      <li>jboss.conf
   <pre>
   &lt;MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar" 
CODEBASE="../lib/ext/"&gt;
       &lt;ARG TYPE="java.lang.String" VALUE="<b>OracleDB</b>"&gt;
       &lt;ARG TYPE="java.lang.String" 
VALUE="org.jboss.minerva.xa.XADataSourceImpl"&gt;
   &lt;/MLET&gt;
   </pre>
  -       </li>
  -       <li>jboss.jcml
  +      </li>
  +      <li>jboss.jcml
   <pre>
        &lt;mbean name="DefaultDomain:service=XADataSource,name=<b>OracleDB</b>"&gt;
          &lt;attribute 
name="URL"&gt;jdbc:oracle:thin:@<b>host.domain.com</b>:1521:<b>instance</b>&lt;/attribute&gt;
  @@ -325,107 +325,107 @@
          &lt;attribute name="JDBCUser"&gt;<b>tiger</b>&lt;/attribute&gt;
        &lt;/mbean&gt;
   </pre>
  -       </li>
  -     </ul>
  +      </li>
  +    </ul>
         </li>
   
         <li>Hypersonic</li>
           <ul>
             <li>lib/ext: <a 
HREF="http://hsql.oron.ch/hSqlDownload.html">hsql.jar</a></li>
  -       <li>jboss.properties
  +      <li>jboss.properties
   <pre>
   jdbc.drivers=org.hsql.jdbcDriver
   </pre>
  -       </li>
  -       <li>jboss.conf
  +      </li>
  +      <li>jboss.conf
   <pre>
   &lt;MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar" 
CODEBASE="../lib/ext/"&gt;
       &lt;ARG TYPE="java.lang.String" VALUE="<b>Hypersonic</b>"&gt;
       &lt;ARG TYPE="java.lang.String" 
VALUE="org.jboss.minerva.xa.XADataSourceImpl"&gt;
   &lt;/MLET&gt;
   </pre>
  -       </li>
  -       <li>jboss.jcml
  +      </li>
  +      <li>jboss.jcml
   <pre>
        &lt;mbean name="DefaultDomain:service=XADataSource,name=<b>Hypersonic</b>"&gt;
          &lt;attribute 
name="URL"&gt;jdbc:HypersonicSQL:hsql://<b>localhost</b>&lt;/attribute&gt;
          &lt;attribute name="JDBCUser"&gt;<b>sa</b>&lt;/attribute&gt;
        &lt;/mbean&gt;
   </pre>
  -       </li>
  -     </ul>
  +      </li>
  +    </ul>
         </li>
   
         <li>DB/2 (<i>Forthcoming...</i>)
           <ul>
             <li>lib/ext: <a 
HREF="http://www-4.ibm.com/software/data/db2/java/">unknown.jar</a></li>
  -       <li>jboss.properties
  +      <li>jboss.properties
   <pre>
   </pre>
  -       </li>
  -       <li>jboss.conf
  +      </li>
  +      <li>jboss.conf
   <pre>
   </pre>
  -       </li>
  -       <li>jboss.jcml
  +      </li>
  +      <li>jboss.jcml
   <pre>
   </pre>
  -       </li>
  -     </ul>
  +      </li>
  +    </ul>
         </li>
   
         <li>Sybase (<i>Forthcoming...</i>)
           <ul>
             <li>lib/ext: <a 
HREF="http://www.sybase.com/detail_list/1,3153,2282,00.html">unknown.jar</a></li>
  -       <li>jboss.properties
  +      <li>jboss.properties
   <pre>
   </pre>
  -       </li>
  -       <li>jboss.conf
  +      </li>
  +      <li>jboss.conf
   <pre>
   </pre>
  -       </li>
  -       <li>jboss.jcml
  +      </li>
  +      <li>jboss.jcml
   <pre>
   </pre>
  -       </li>
  -     </ul>
  +      </li>
  +    </ul>
         </li>
   
         <li>PostgreSQL (<i>Forthcoming...</i>)
           <ul>
             <li>lib/ext: <a 
HREF="http://www.postgresql.org/sites.html">jdbc7.0-1.2.jar</a></li>
  -       <li>jboss.properties
  +      <li>jboss.properties
   <pre>
   </pre>
  -       </li>
  -       <li>jboss.conf
  +      </li>
  +      <li>jboss.conf
   <pre>
   </pre>
  -       </li>
  -       <li>jboss.jcml
  +      </li>
  +      <li>jboss.jcml
   <pre>
   </pre>
  -       </li>
  -     </ul>
  +      </li>
  +    </ul>
         </li>
   
         <li>Interbase (<i>Forthcoming...</i>)
           <ul>
             <li>lib/ext: <a 
HREF="http://www.borland.com/interbase/downloads/">interclient-core.jar</a></li>
  -       <li>jboss.properties
  +      <li>jboss.properties
   <pre>
   </pre>
  -       </li>
  -       <li>jboss.conf
  +      </li>
  +      <li>jboss.conf
   <pre>
   </pre>
  -       </li>
  -       <li>jboss.jcml
  +      </li>
  +      <li>jboss.jcml
   <pre>
   </pre>
  -       </li>
  -     </ul>
  +      </li>
  +    </ul>
         </li>
       </ul>
   
  @@ -477,7 +477,7 @@
      &lt;ARG TYPE="java.lang.String" VALUE="../../log/"&gt;
   &lt;/MLET&gt;
   </pre>
  -    <p>Finally, if you want to change the output file later, you will
  +    <p>If you want to change the output file later, you will
         need to update the file name both here and in
         <code>jboss.jcml</code>.  Since it is both set at startup (so the
         initial output is logged) and able to be set dynamically via the
  @@ -486,6 +486,20 @@
         <code>jboss.jcml</code> when you first switch to file logging,
         because it will populate the correct default filename for you
         automatically.</p>
  +    <p>Finally, if you want to append the output file at startup
  +      rather than to overwrite, you should add one more argument line 
  +      in jboss.conf:</p>
  +<pre>
  +&lt;MLET CODE = "org.jboss.logging.FileLogging" ARCHIVE="jboss.jar" 
CODEBASE="../lib/ext/"&gt;
  +   &lt;ARG TYPE="java.lang.String" VALUE="Information,Debug,Warning,Error"&gt;
  +   &lt;ARG TYPE="java.lang.String" VALUE="<b>{0,date,yyyy-MM-dd} 
{0,time,hh:mm:ss}</b> [{2}] {4}"&gt;
  +   &lt;ARG TYPE="java.lang.String" VALUE=""&gt;
  +   &lt;ARG TYPE="java.lang.String" VALUE="FileName"&gt;
  +   &lt;ARG TYPE="java.lang.Boolean" VALUE="<b>true</b>"&gt;
  +&lt;/MLET&gt;
  +</pre>
  +    <p>In the second argument line above you can see an example
  +    of setting date and time formats for the log file.</p>
   
       <h4><a NAME="gui">Configuring GUI Logging</a></h4>
       <p>For GUI logging, add an entry to jboss.conf that looks like
  @@ -535,9 +549,9 @@
          &lt;attribute name="Port"&gt;<b>8082</b>&lt;/attribute&gt;
        &lt;/mbean&gt;
   </pre>
  -     <p>To change the RMI port, change the following entry in
  -       <code>jboss.jcml</code> in the <strong>conf</strong> directory.
  -       Your clients should use the new port automatically.</p>
  +    <p>To change the RMI port, change the following entry in
  +      <code>jboss.jcml</code> in the <strong>conf</strong> directory.
  +      Your clients should use the new port automatically.</p>
   <pre>
        &lt;mbean name="DefaultDomain:service=Webserver"&gt;
          &lt;attribute name="Port"&gt;<b>8083</b>&lt;/attribute&gt;
  
  
  

Reply via email to