reisn+xml
conf\resin.conf
timesten数据库:

 1 <database>
 2            <jndi-name>qipai</jndi-name>
 3            <driver type="com.timesten.jdbc.TimesTenClientDriver">
 4              <url>jdbc:timesten:client:qipai</url>
 5              <user></user>
 6              <password></password>
 7             </driver>
 8             <max-active-time>100</max-active-time>
 9             <max-idle-time>30s</max-idle-time>
10      <transaction-timeout>1000</transaction-timeout>
11      <max-connections>100</max-connections>
12  </database>


oracle数据库:

 1 <database>
 2            <jndi-name>qipainw</jndi-name>
 3            <driver type="oracle.jdbc.driver.OracleDriver">
 4              <url>jdbc:oracle:thin:@192.168.*.*:6688:tang</url>
 5              <user>game_qipai</user>
 6              <password>qipai</password>
 7             </driver>
 8             <max-active-time>100</max-active-time>
 9             <max-idle-time>30s</max-idle-time>
10         <transaction-timeout>1000</transaction-timeout>
11         <max-connections>100</max-connections>
12          </database>

 

1 <web-app id="/YourwebName" document-directory="D:\YourwebName">
2               <system-property javax.xml.transform.TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"/>
3         <system-property javax.xml.parsers.DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
4         <system-property javax.xml.parsers.SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
5         <system-property org.xml.sax.driver="org.apache.xerces.parsers.SAXParser"/>
6       </web-app>



applicationContext-resources.xml

1 <bean id="qipainwDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
2         <property name="jndiName"><value>java:comp/env/qipainw</value></property>
3     </bean>
4 
5     
6     <bean id="qipaiDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
7         <property name="jndiName"><value>java:comp/env/qipai</value></property>
8     </bean>

 

tomcat+xml
 conf\server.xml

1  <Connector 
2 port="8080"    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
3                enableLookups="false" redirectPort="8443" acceptCount="100"
4                debug="0" connectionTimeout="20000" 
5                disableUploadTimeout="true" 
6                useBodyEncodingForURI="true" />
1 <Context path="/YourwebName" reloadable="false" 
2               docBase="D:\YourwebName" 
3               workDir="D:\YourwebName\work" /> 

applicationContext-resources.xml
 1  <bean id="qipainwDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
 2         <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
 3         <property name="url" value="jdbc:oracle:thin:@192.168.*.*:6688:tang"/>
 4         <property name="username" value="game_qipai"/>
 5         <property name="password" value="qipai"/>
 6         <property name="maxActive" value="100"/>
 7         <property name="maxIdle" value="30"/>
 8         <property name="maxWait" value="1000"/>
 9         <property name="defaultAutoCommit" value="true"/>
10         <property name="removeAbandoned" value="true"/>
11         <property name="removeAbandonedTimeout" value="60"/>
12     </bean>
13     
14     <bean id="qipaiDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
15         <property name="driverClassName" value="com.timesten.jdbc.TimesTenClientDriver"/>
16         <property name="url" value="jdbc:timesten:client:qipai"/>
17         <property name="username" value=""/>
18         <property name="password" value=""/>
19         <property name="maxActive" value="100"/>
20         <property name="maxIdle" value="30"/>
21         <property name="maxWait" value="1000"/>
22         <property name="defaultAutoCommit" value="true"/>
23         <property name="removeAbandoned" value="true"/>
24         <property name="removeAbandonedTimeout" value="60"/>
25     </bean>