You can work around this by changing the connection pool configuration programatically by adding your own plugin.
DBPlugin sets the configuration in onApplicationStart(), so in your plugin change the configuration in the afterApplicationStart() method, for example:
public class MyPlugin extends PlayPlugin {
public void afterApplicationStart() {
Properties p = Play.configuration;
You can work around this by changing the connection pool configuration programatically by adding your own plugin. art(), so in your plugin change the configuration in the afterApplicatio nStart( ) method, for example:
DBPlugin sets the configuration in onApplicationSt
public class MyPlugin extends PlayPlugin { nStart( ) {
public void afterApplicatio
Properties p = Play.configuration;
// change the main Play datasource configuration taSource mainDataSource = (ComboPooledDat aSource) DB.datasource; e.setAcquireRet ryAttempts( Integer.parseInt( p.getProperty( "db.retry. attempts" , "2" ) ) ); e.setAcquireRet ryDelay( Integer.parseInt( p.getProperty( "db.retry.delay", "200" ) ) ); e.setBreakAfter AcquireFailure( false );
ComboPooledDa
mainDataSourc
mainDataSourc
mainDataSourc
}
}