[jboss-cvs] jboss-seam/examples/wiki/src/etc ...

Christian Bauer christian at hibernate.org
Wed Sep 26 05:34:02 EDT 2007


  User: cbauer  
  Date: 07/09/26 05:34:02

  Modified:    examples/wiki/src/etc  wiki-prod-ds.xml
  Log:
  Production datasource config that actually works
  
  Revision  Changes    Path
  1.7       +4 -3      jboss-seam/examples/wiki/src/etc/wiki-prod-ds.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: wiki-prod-ds.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/etc/wiki-prod-ds.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- wiki-prod-ds.xml	25 Sep 2007 14:30:45 -0000	1.6
  +++ wiki-prod-ds.xml	26 Sep 2007 09:34:02 -0000	1.7
  @@ -10,7 +10,7 @@
   
           <min-pool-size>20</min-pool-size>
   
  -        <!-- Make sure your MySQL config has that man max_connections!
  +        <!-- Make sure your MySQL config has that many max_connections!
                This is the max_threads in default Tomcat server.xml on JBoss AS. -->
           <max-pool-size>250</max-pool-size>
   
  @@ -19,8 +19,9 @@
           <!-- Needs to be smaller than wait_timeout (which is in seconds) in /etc/my.cnf! -->
           <idle-timeout-minutes>2</idle-timeout-minutes>
   
  -        <!-- Safety in case all these timeouts still conflict -->
  -        <check-valid-connection-sql>select 1</check-valid-connection-sql>
  +        <!-- These are the secret ingredients that make it stable! A simple check-valid-connection-sql won't be enough! -->
  +        <exception-sorter-class-name>com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter</exception-sorter-class-name>
  +        <valid-connection-checker-class-name>com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker</valid-connection-checker-class-name>
   
       </local-tx-datasource>
   
  
  
  



More information about the jboss-cvs-commits mailing list