posts - 247,  comments - 25,  trackbacks - 0

一:
首先,在D:/Tomcat5.0/conf 创建一个名为Fantasysoft(名字可以随你自己定了)的文件夹,然后在Fantasysoft下面在创建一个localhost的文件夹,然后将相应的Web Application的Context配置文件放到新建的localhost文件夹中;

二:
<?xml version="1.0" encoding="UTF-8"?>
<Server>
  <Listener className="org.apache.catalina.core.AprLifecycleListener"/>
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
  <Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
  <GlobalNamingResources>
    <Environment
      name="simpleValue"
      type="java.lang.Integer"
      value="30"/>
    <Resource
      auth="Container"
      description="User database that can be updated and saved"
      name="UserDatabase"
      type="org.apache.catalina.UserDatabase"
      pathname="conf/tomcat-users.xml"
      factory="org.apache.catalina.users.MemoryUserDatabaseFactory"/>
 
  </GlobalNamingResources>
  <Service
      name="Catalina">
    <Connector
        port="8081"
        redirectPort="8443"
        minSpareThreads="25"
        connectionTimeout="20000"
        maxThreads="150"
        maxSpareThreads="75">
    </Connector>
    <Connector
        port="8009"
        redirectPort="8443"
        protocol="AJP/1.3">
    </Connector>
    <Engine
        defaultHost="localhost"
        name="Catalina">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
      <Host
          appBase="webapps"
          name="localhost">
    <!--Context path="" reloadable="true" docBase="D:\workspace\fez\WebRoot" workDir="D:\workspace\work6" >
     <Resource
      name="fez_mke"
      type="javax.sql.DataSource"
      password="tiger"
      driverClassName="oracle.jdbc.driver.OracleDriver"
      maxIdle="1"
      maxWait="-1"
      username="scott"
      url="jdbc:oracle:thin:@192.168.0.104:1521:iosef"
      factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
      maxActive="2"/>
   </Context-->
     <!--Resource
      name="fez_mke"
      type="javax.sql.DataSource"
      password="tiger"
      driverClassName="oracle.jdbc.driver.OracleDriver"
      maxIdle="1"
      maxWait="-1"
      username="scott"
      url="jdbc:oracle:thin:@10.100.16.115:1521:iosef"
      factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
      maxActive="2"/-->
   <!--Context path="" reloadable="true" docBase="D:\workspace\perform\WebRoot" workDir="D:\workspace\work4" >
     <Resource
      name="jdbc/perform"
      type="javax.sql.DataSource"
      password="iosef"
      driverClassName="oracle.jdbc.driver.OracleDriver"
      maxIdle="1"
      maxWait="-1"
      username="iosef"
      url="jdbc:oracle:thin:@192.168.0.104:1521:xe"
      factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
      maxActive="2"/>
   </Context-->
   <!--Context path="" reloadable="true" docBase="D:\workspace\uniedu\WebRoot" workDir="D:\workspace\work4" >
      <Resource name="uniedu"
       type="javax.sql.DataSource"
       password="iosef"
       driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
       maxIdle="50"
       maxWait="0"
       username="sa"
       url="jdbc:sqlserver://127.0.0.1:1433;databasename=uniedu"     
       maxActive="100"/>
   </Context-->
   <Context path="" reloadable="true" docBase="D:\workspace\arko\WebRoot" workDir="D:\workspace\work6" >
     <Resource
      name="art"
      type="javax.sql.DataSource"
      password="art"
      driverClassName="oracle.jdbc.driver.OracleDriver"
      maxIdle="1"
      maxWait="-1"
      username="art"
      url="jdbc:oracle:thin:@192.168.0.104:1521:art"
      factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
      maxActive="2"/>
   </Context>
   <!--Context path="" reloadable="true" docBase="D:\workspace\asean\WebRoot" workDir="D:\workspace\work7" >
   <Resource name="jdbc/tibero"                
                   auth="Container"
                   type="javax.sql.DataSource"
                   driverClassName="com.tmax.tibero.jdbc.TbDriver"
                   factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
                   url="jdbc:tibero:thin:@61.100.185.152:8629:asean"  
                   username="asean"              
                   password="asean123"                 
                   maxActive="20"
                   maxIdle="10"
                   maxWait="-1"
                   removeAbandoned="true"/>
       </Context-->
      </Host>
    </Engine>
  </Service>
 <Service name="Fantasysoft">
  <Connector acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" port="8090"
redirectPort="8453" maxSpareThreads="75" maxThreads="150"
minSpareThreads="25"/>

  <Connector port="8019" protocol="AJP/1.3"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
redirectPort="8453"/>

  <Engine defaultHost="localhost" name="Catalina">
   <Host appBase="webapps" name="localhost">
     <Context path="" reloadable="true" docBase="D:\workspace\perform\WebRoot" workDir="D:\workspace\work4" >
     <Resource
      name="jdbc/perform"
      type="javax.sql.DataSource"
      password="iosef"
      driverClassName="oracle.jdbc.driver.OracleDriver"
      maxIdle="1"
      maxWait="-1"
      username="iosef"
      url="jdbc:oracle:thin:@192.168.0.104:1521:xe"
      factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
      maxActive="2"/>
   </Context>
   </Host>
  <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
  </Engine>
</Service>

</Server>

posted on 2009-02-17 16:40 林的 阅读(618) 评论(0)  编辑  收藏 所属分类: util

只有注册用户登录后才能发表评论。


网站导航:
 
<2009年2月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567

想回家了,呵呵!

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

相册

收藏夹

搜索

  •  

最新评论

阅读排行榜

评论排行榜