tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Munirathinavel <munirathina...@gmail.com>
Subject Tomcat's server.xml & context.xml files
Date Mon, 08 Feb 2010 15:17:44 GMT

server.xml:

<?xml version='1.0' encoding='utf-8'?>
<Server port="8006" shutdown="SHUTDOWN"> 

  <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
  <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <Service name="Catalina">
  
    
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
        maxThreads="400" minSpareThreads="4" maxSpareThreads="100" />
   
   <!--
	<Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />
	-->
    <!-- A "Connector" using the shared thread pool-->
   
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />
               
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> -->

	<!-- Unsecured connector -->
<Connector protocol="AJP/1.3" redirectPort="443" scheme="http"
secure="false" address="empower.mybiz24by7.com" port="8008" />

<!-- Secured connector -->
<Connector protocol="AJP/1.3" redirectPort="443" scheme="https"
secure="true" address="empower.mybiz24by7.com" port="8009" />

	<Connector debug="0" enableLookups="false" port="8009" protocol="AJP/1.3"
redirectPort="8443"/>


    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">         
    --> 
    <Engine name="Catalina" defaultHost="216.205.107.50">

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="216.205.107.50"  appBase="gateway"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

			<Listener className = "org.apache.jk.config.ApacheConfig"
workersConfig="conf/workers.properties"
mod_Jk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log"
jkDebug="info" noRoot="false"/>
      </Host>
    </Engine>
  </Service>
	<Listener className = "org.apache.jk.config.ApacheConfig"
workersConfig="conf/workers.properties"
mod_Jk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log"
jkDebug="info" noRoot="false"/>
</Server>

context.xml

<?xml version='1.0' encoding='utf-8'?>

 
   <Context>

	 <WatchedResource>WEB-INF/web.xml</WatchedResource>

   	<Resource name="jdbc/vehrentDB" auth="Container"
      	type="javax.sql.DataSource" 
	  	maxActive="100"
      	maxIdle="30"
	  	username="****" password="****"      
		driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
	     url="jdbc:sqlserver://216.205.107.204:1433;	      
		databaseName=VEHRENT;user=****;password=****;"
      	numTestsPerEvictionRun="15" 			     
timeBetweenEvictionRunsMillis="900000"
        minEvictableIdleTimeMillis="900000" 
		testWhileIdle="true"
		testOnBorrow="false"    
		removeAbandoned="true" 
		removeAbandonedTimeout="300"
      	logAbandoned="true" 
	/>

	<Resource name="jdbc/empowerDB" auth="Container"
      	type="javax.sql.DataSource" 
		maxActive="100"
		maxIdle="30"
		username="****" password="****"
	   driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
      
url="jdbc:sqlserver://216.205.107.204:1433;databaseName=EMPOWER;user=****;password=****;"
	      numTestsPerEvictionRun="15" 							
timeBetweenEvictionRunsMillis="900000"
	      minEvictableIdleTimeMillis="900000" 
		testWhileIdle="true"
      	testOnBorrow="false"
            removeAbandoned="true" 
		removeAbandonedTimeout="300"
      	logAbandoned="true" 
	/>
</Context> 
	

-- 
View this message in context: http://old.nabble.com/Tomcat%27s--server.xml---context.xml-files-tp27501392p27501392.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message