https://bz.apache.org/bugzilla/show_bug.cgi?id=62910

--- Comment #3 from zhengfc <zhengfc...@gmail.com> ---
The context.xml and server.xml, I deploy multi app use the game connection will
cause transaction problem.
-------------------------context.xml-----------------------------
<ResourceLink name="game" global="game" auth="Container"
type="javax.sql.DataSource" />

-------------------------server.xml------------------------------
<GlobalNamingResources>
  <!-- Editable user database that can also be used by
       UserDatabaseRealm to authenticate users
  -->
  <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" />
<Resource global="game"
          name="game"
          auth="Container"
          type="javax.sql.DataSource"
          testWhileIdle="true"
          testOnBorrow="true"
          testOnReturn="false"
          factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
          validationQuery="SELECT 1 from dual"
          timeBetweenEvictionRunsMillis="30000"
          minEvictableIdleTimeMillis="600000"
          numTestsPerEvictionRun="10"
          maxActive="20"
          minIdle="5"
          maxIdle="20"
          maxWait="10000"
          initialSize="10"
          username="XXXXXX"
          password="XXXXXX"
          driverClassName="oracle.jdbc.driver.OracleDriver"
          defaultAutoCommit="true" 
          url="jdbc:oracle:thin:@10.48.171.20:1521:topdb15" />

</GlobalNamingResources>

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to