On 9/25/2018 2:15 PM, Rajesh M wrote:
Sure, here it is.
*@Bean*
* public DataSource getDataSource() {*
**
* BasicDataSource dataSource = new BasicDataSource();*
* dataSource.setDriverClassName("org.h2.Driver");*
*
dataSource.setUrl("jdbc:h2:mem:refimpldb;MODE=MYSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;");*
* dataSource.setUsername("admin");*
* dataSource.setPassword("admin");*
* return dataSource;*
* }*
*
*
*I am using the org.apache.commons.dbcp2.BasicDataSource.*
...
1) In Oak tests, we use the Tomcat connection pool; maybe that's relevant.
Also:
2) Are you sure about the "mem" option. Can you reproduce the issue when
using file storage? FWIW, you con't seem to use the embedded server at
all, no?
Best regards, Julian