context.xml 1.41 KB
Newer Older
toaster's avatar
toaster committed
1
<?xml version="1.0" encoding="UTF-8"?>
2
<Context path="/ace-am-1.7-SNAPSHOT">
toaster's avatar
   
toaster committed
3
4
  <Logger className="org.apache.catalina.logger.FileLogger" prefix="aceam." suffix=".log" timestamp="true"/>
  <!-- Configuration for authentication. This information should not need to be
toaster's avatar
toaster committed
5
  changed at all unless you have your own authentication provider-->
6
  <Realm className="org.apache.catalina.realm.DataSourceRealm" dataSourceName="jdbc/aceamdb" localDataSource="true" roleNameCol="rolename" userCredCol="password" userNameCol="username" userRoleTable="userroles" userTable="users" />
toaster's avatar
   
toaster committed
7
  <!-- If you are using a locally installed Mysql server, you only need to change
toaster's avatar
toaster committed
8
       the password entry at the end, otherwise you may need to look at the url
toaster's avatar
   
toaster committed
9
10
       or the username.

toaster's avatar
toaster committed
11
       url - machine name and database name
toaster's avatar
toaster committed
12
         - in the form jdbc:mysql://<YOUR_DB_SERVER>/<ACE_DB>
toaster's avatar
toaster committed
13
14
       username - username used to connect to database
       password - password used for database
toaster's avatar
   
toaster committed
15

toaster's avatar
toaster committed
16
17
18
       'name' is the resource name used by the web app to refer to this
       database and NOT the database name, do not change unless you want bad
       things to happen.-->
19
  <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/aceamdb" password="ace" testOnBorrow="true" type="javax.sql.DataSource" url="jdbc:mysql://localhost/aceam?characterEncoding=UTF-8" username="aceam" validationQuery="SELECT 1"/>
toaster's avatar
toaster committed
20
</Context>