简体   繁体   中英

How can I change another dataSource (not default c3p0) in Play 1.4.3

In Play 1.4.3, the default pool is c3p0 . I wanna change it.

Something like follows:

db=java:/comp/env/jdbc/myDatasource@
db=jndi:jdbc/myDataSource

how can I config to make it work?

Changing the pool would effectively mean changing the framework code itself, since it's "bundled" with Play.

One way to do this is to clone Play from GitHub ( https://github.com/playframework/play1 ) so you can make whatever low-level changes you like.

Alternatively, you could look at the 1.5.x releases, which use HikariCP as the connection pool out of the box.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM