<!-- 
     Example roller context configuration file for Tomcat 5.5.X and MySQL 4.1.X
     Place this file at CATALINA_HOME/conf/Catalina/localhost/roller.xml and replace
     the following values:
	DBNAME - The name of your Roller database (the name you used with 'create database')
	DBUSERNAME - A MySQL user with full access to that database
	DBPASSWORD - The password for that user
     This file assumes you are deploying Roller to the URI "/roller" and have put it under
     "roller" in your normal Tomcat appbase (typically "webapps").  If not, see the
     instructions for setting up Roller to run under a different URI.
-->
<Context path="/roller" docBase="roller" debug="99" workDir="work/Catalina/localhost/roller">
	
    <Realm className="org.apache.catalina.realm.JDBCRealm"      
      driverName="com.mysql.jdbc.Driver"
      connectionURL=
        "jdbc:mysql://localhost:3306/DBNAME?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;mysqlEncoding=utf8"      connectionName="DBUSERNAME"
      connectionPassword="DBPASSWORD"
      userTable="rolleruser" 
      userNameCol="username" 
      userCredCol="passphrase" 
      userRoleTable="userrole" 
      roleNameCol="rolename" debug="99" />

    <Resource name="jdbc/rollerdb" auth="Container" type="javax.sql.DataSource"
      driverClassName="com.mysql.jdbc.Driver"
      url="jdbc:mysql://localhost:3306/DBNAME?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;mysqlEncoding=utf8"
      username="DBUSERNAME"
      password="DBPASSWORD"
      maxActive="20"
      maxIdle="3"
      removeAbandoned="true"
      maxWait="3000" />

    <!--
      To enable email notification of comments: uncomment the resouce below, 
      set your mailhost, and make sure you have mail.jar and activation.jar 
      in <tomcat>/common/lib.
    -->
    <!--
    <Resource name="mail/Session" auth="Container" type="javax.mail.Session"
      mail.smtp.host="mailhost.example.com" />
    -->

</Context>
