alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<?xml version="1.0" encoding="UTF-8"?>
<baseElement>
    <dboptions>
        <!--
         if USE_DATASOURCE = false, use the default built-in connection pool
         if USE_DATASOURCE = true,  use the connection pool that Servlet Container provides
        -->
        <use_datasource>false
        <!--
         You should NOT change the DATABASE_TYPE below
         By default, DATABASE_TYPE = 0
         NOTE: If your database/driver doesnt support scrollable resultset
               (such as some version of Interbase/Firebird), set DATABASE_TYPE = 2
        -->
        <database_type>0
        <!--
         Set the below options if you want to use default connection pool
         This is applied if you set USE_DATASOURCE = false
         MINUTES_BETWEEN_REFRESH is the minutes between built-in Connection Pool refreshment
               Some time your database server is set connection timeout too low, such as
               5 minutes, that cause the connection auto disconnected. In this case you should
               set MINUTES_BETWEEN_REFRESH lower than the server connection timeout value
         NOTE: These values can be obtained from the header of the
               sql script for your database
         NOTE: For compatible with future release of mvnForum, we highly
               recommend that use config your database/driver to use unicode utf8 encoding
        -->
        <driver_class_name>com.mysql.jdbc.Driver
        <database_url>jdbc:mysql://localhost/mvnforum?useUnicode=true&characterEncoding=utf-8
        <database_user>root
        <database_password/>
        <max_connection>20
        <max_time_to_wait>2000
        <minutes_between_refresh>30
        <!--
         Set the Data source name if you want to use Servlet Container connection pool
         This is applied if you set USE_DATASOURCE = true
        -->
        <datasource_name/>
    </dboptions>

    <!--
     If your server supports sending email without authentication,
       just let the USERNAME and PASSWORD empty
     If your server requires authentication, set USERNAME and PASSWORD
        to the correct values
    -->
    <mailoptions>
        <mail_server>mail.localhost.com
        <default_mail_from>webmaster@yourdomain.com
        <username/>
        <password/>
        <port>25
    </mailoptions>

    <paramoptions>
        <context_path>/mvnforum
        <server_path>http://localhost:8080
    </paramoptions>

    <!--
     The timezone of the server
     Ex: if server is in Vietnam, SERVER_HOUR_OFFSET = 7
     Ex: if server is in Mexico , SERVER_HOUR_OFFSET = -6
     Ex: if server is in England, SERVER_HOUR_OFFSET = 0
    -->
    <dateoptions>
        <server_hour_offset>0
    </dateoptions>

    <!--
     If you want to block certain User Agent (such as browser), just config it here
     Each User Agent is separated with a character ';'
     Example: to block 2 User Agents Teleport and Massdownloader,
     set it as below:
     BLOCKED_USER_AGENT = Teleport;Mass Downloader;WebCopier;Wget;Web Downloader;WebZIP;WebStripper
    -->
    <useragentoptions>
        <blocked_user_agent/>
    </useragentoptions>

    <!--
     If you want to block certain IP, just config it here
     Each IP is separated with a character ';'
     Example: to block 2 IPs 255.255.255.0 and 255.255.255.1,
     set it as below:
     BLOCKED_IP = 255.255.255.0;255.255.255.1
    -->
    <ipoptions>
        <blocked_ip/>
    </ipoptions>

    <mvncoreconfig>
        <!--
          Enable it to prevent spam, or set to false to compatible with RC3 and before
          Please read http://www.google.com/googleblog/2005/01/preventing-comment-spam.html
        -->
        <enable_link_nofollow>false
    </mvncoreconfig>

    <!--
      Set the MailInterceptor and ContentInterceptor
    -->
    <interceptor>
        <mailinterceptor_implementation>
        <contentinterceptor_implementation>
        <loginidinterceptor_implementation>
    </interceptor>
</baseElement>
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.