]> git.pld-linux.org Git - packages/crowd.git/blob - tomcat-context.xml
- drop obsolete and outdated manual inclusion of rpm macros
[packages/crowd.git] / tomcat-context.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- $Id$ -->
3 <Context path="/crowd" docBase="/usr/share/crowd"
4         privileged="false" allowLinking="true">
5
6   <!-- WARNING: It is highly remomended to use real database instead of
7        internal hsqldb. See example config for mysql below -->
8
9   <Resource name="jdbc/CrowdDS" auth="Container" type="javax.sql.DataSource"
10     username="sa"
11     password=""
12     driverClassName="org.hsqldb.jdbcDriver"
13     url="jdbc:hsqldb:/var/lib/crowd/crowdb/"
14     minEvictableIdleTimeMillis="4000"
15     timeBetweenEvictionRunsMillis="5000"/>
16   
17   <!-- If you want to use mysql database, comment out previous jdbc resource,
18        and uncomment this one. You will also have to customize your
19        entityengine.xml.
20
21        Make sure that mysql listens on TCP socket, because java do not know
22        how to use UNIX sockets. If you are not sure if mysql is configured
23        correctly, try to connect to it with the following command:
24        $ mysq -h127.0.0.1 -ucrowd -pcrowd crowd
25        Note 127.0.0.1, not localhost, which is resolved to UNIX socke path by
26        mysql client.
27     -->
28
29   <!--
30
31   <Resource name="jdbc/CrowdDS" auth="Container" type="javax.sql.DataSource"
32     username="crowd"
33     password="crowd"
34     driverClassName="com.mysql.jdbc.Driver"
35     url="jdbc:mysql://localhost/crowd?autoReconnect=true&amp;useUnicode=true&amp;characterEncoding=UTF8"
36     maxActive="20"
37     validationQuery="select 1" />
38
39     -->
40
41 </Context>
This page took 0.04247 seconds and 3 git commands to generate.