Created
June 29, 2013 14:48
-
-
Save denen99/5891383 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val cpdsMaster = { | |
val props = new Properties | |
props.load(getClass.getResourceAsStream("/c3p0-master.properties")) | |
val cpds = new ComboPooledDataSource | |
cpds.setProperties(props) | |
logger.info("Created Master c3p0 connection pool") | |
cpds | |
} | |
val cpdsSlave = { | |
val props = new Properties | |
props.load(getClass.getResourceAsStream("/c3p0-slave.properties")) | |
val cpds = new ComboPooledDataSource | |
cpds.setProperties(props) | |
logger.info("Created Slave c3p0 connection pool") | |
cpds | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment