<?xml version="1.0" encoding="UTF-8"?>
<Context path="/collect" reloadable="false">
	
   	<!-- Parameters -->
	<Parameter name="collect.simple_editor" value="false" /> <!-- Simplifies Survey Editor UI -->
	
   	<!-- SQLite database stored in USER_HOME/openforis/collect/data/collect.db file -->
	<Resource 
	   name="jdbc/collectDs" 
	   auth="Container"
	   type="javax.sql.DataSource"
	   factory="org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory"
	   driverClassName="org.sqlite.JDBC"
       url="jdbc:sqlite:${user.home}/OpenForis/Collect/data/collect.db">
	 </Resource>
	 
	<!-- PostgreSQL database configuration -->
	<!--
	<Resource 
	   name="jdbc/collectDs" 
	   auth="Container"
	   type="javax.sql.DataSource"
	   factory="org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory"
	   driverClassName="org.postgresql.Driver"
	   url="jdbc:postgresql://localhost:5432/collect"
	   username="collect"
	   password="collect123"
	   initialSize="5"
	   maxActive="20"
	   maxIdle="5">
	 </Resource>
	-->

</Context>