zallery/WebContent/META-INF/context.example.xml

26 lines
873 B
XML
Raw Normal View History

2012-06-13 17:59:22 +00:00
<?xml version="1.0" encoding="utf-8"?>
2016-12-20 17:22:27 +01:00
<!-- This file should modified and copied to /etc/tomcat7/Catalina/localhost/Zallery.xml -->
2012-06-13 17:59:22 +00:00
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
2016-12-20 17:22:27 +01:00
<Environment type="java.lang.String" name="WEBSITE_NAME" value="Gallery" />
2017-01-20 14:26:25 +01:00
<Environment type="java.lang.String" name="WEBSITE_URL" value="http://example.com/Zallery/" />
2016-12-20 17:22:27 +01:00
<Environment type="java.lang.String" name="SMTP_HOST" value="127.0.0.1" />
<Environment type="java.lang.String" name="DATA_PATH" value="C:\\data" />
2012-06-13 17:59:22 +00:00
2016-12-20 17:22:27 +01:00
<Resource
name="jdbc/mysql"
auth="Container"
2012-06-13 17:59:22 +00:00
type="javax.sql.DataSource"
2017-01-20 14:23:02 +01:00
username="username"
password="password"
2012-06-13 17:59:22 +00:00
driverClassName="com.mysql.jdbc.Driver"
2017-01-20 14:23:02 +01:00
url="jdbc:mysql://host:3306/database"
2016-12-20 17:22:27 +01:00
maxActive="8"
maxIdle="4"
validationQuery="SELECT 1"
2012-06-13 17:59:22 +00:00
testOnBorrow="true" />
2016-12-20 17:22:27 +01:00
2012-06-13 17:59:22 +00:00
</Context>