context.xml 1.48 KB
<?xml version='1.0' encoding='utf-8'?>
<Context antiJARLocking="true"
		  antiResourceLocking="false"
		  distributable="true" 
		  reloadable="false" crossContext="false">
	
	<Parameter name="localhost" value="yes" override="true" />  
	<Parameter name="localhost.database" value="web144db2" override="true" />  
	<Parameter name="localhost.environment" value="liliana" override="true" />  
	<Parameter name="localhost.context" value="mwm.dev.ctsapplications.it/adt_test" override="true" />  
	
		  
	<!-- Default set of monitored resources -->
  	<WatchedResource>WEB-INF/web.xml</WatchedResource>
	
    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
 	<Manager pathname="" />	  


	<!--  SVILUPPO - ADT -->
	<Resource   name="jdbc/mwm_app"
				auth="Container" 
	  			description="DB Connection" 
	  			driverClass="com.mysql.jdbc.Driver" 
	  			
				initialPoolSize="2"
				minPoolSize="2" 
				maxPoolSize="10" 
				acquireIncrement="2" 
				
				checkoutTimeout="3600"
				breakAfterAcquireFailure="false"
				maxIdleTimeExcessConnections = "30"
				maxIdleTime = "1800"
				maxConnectionAge="3600"				
				idleConnectionTestPeriod="200"
				
	  			user="web144u2" 
				password="fdte5532" 
	  			factory="org.apache.naming.factory.BeanFactory" 
	  			type="com.mchange.v2.c3p0.ComboPooledDataSource" 
	  			jdbcUrl="jdbc:mysql://localhost:3306/web144db2?autoReconnect=true&amp;characterEncoding=UTF-8" /> 

	  			    
</Context>