Changeset 346:f72ec7d320af


Ignore:
Timestamp:
09/18/11 23:57:06 (5 months ago)
Author:
xeraph
Branch:
default
Convert:
svn:7c3792e6-d75b-4784-96a6-b298f655ee64/trunk@2780
Message:

fixed mysql wait_timeout problem

Location:
kraken-dom/src/main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kraken-dom/src/main/java/org/krakenapps/dom/script/DomScript.java

    r345 r346  
    4242                        props.put("hibernate.connection.username", user); 
    4343                        props.put("hibernate.connection.password", password); 
    44                         props.put("hibernate.connection.is-connection-validation-required", "true"); 
    45                         props.put("hibernate.connection.autoReconnect", "true"); 
    46                         props.put("hibernate.connection.autoReconnectForPools", "true"); 
    4744 
    4845                        jpa.registerEntityManagerFactory(FACTORY_NAME, props, bc.getBundle().getBundleId()); 
  • kraken-dom/src/main/resources/OSGI-INF/kraken-jpa/config

    r333 r346  
    88hibernate.show_sql = false 
    99hibernate.hbm2ddl.auto = update 
     10hibernate.connection.autoReconnect = true 
     11hibernate.connection.autoReconnectForPools = true 
     12hibernate.connection.is-connection-validation-required = true 
     13hibernate.connection.validationQuery = SELECT 1 
     14hibernate.connection.testOnBorrow = true 
     15hibernate.connection.testWhileIdle = true 
     16hibernate.connection.timeBetweenEvictionRunsMillis = 10000 
     17hibernate.connection.minEvictableIdleTimeMillis = 60000 
Note: See TracChangeset for help on using the changeset viewer.