Questions tagged [bonecp]

BoneCP is a fast, free, open-source, Java database connection pool (JDBC Pool) library. It should now be considered deprecated in favour of HikariCP.

BoneCP is a fast, free, open-source, Java database connection pool (JDBC Pool) library. BoneCP's implementation is tuned for high performance by minimizing lock contention to achieve a greater throughput.

Resources:

161 questions
3
votes
2 answers

Play Framework 2.0. Upgrade bonecp

There is a project in Scala for Play 2.0. I've met a known bug with bonecp 0.7.1 database connections and want to upgrade this library to version 0.8.0. In file /project/plugins.sbt I've added the following: resolvers += "Sonatype OSS Snapshots" at…
tilex
  • 1,744
  • 1
  • 17
  • 32
3
votes
0 answers

Mybatis, BoneCP, Spring: SQLBuilder Memory leak issue in Tomcat 7.0.*

I'm working on a project using Spring, Mybatis and BoneCP. Every time I stop Tomcat server, I observe the following mem leak issues: Dec 23, 2012 5:20:21 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web…
eviljan
  • 31
  • 4
3
votes
1 answer

BoneCP & Derby - How to properly shutdown

I have: BoneCP CONNECTION_POOL = ...; CONNECTION_POOL.getConfig().setJdbcUrl("jdbc:derby:database...;shutdown=true"); Connection connection = CONNECTION_POOL.getConnection(); connection.close(); CONNECTION_POOL.shutdown(); However this results in…
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
3
votes
1 answer

BoneCP not logging SQL statements

I'm using an embedded Jetty 8 Server with the jetty-maven-plugin. I cannot get BoneCP to log the statements that are executed. Am I doing anything wrong? Are there any workarounds? This is my BoneCPDataSource:
Marsellus Wallace
  • 17,991
  • 25
  • 90
  • 154
2
votes
2 answers

BoneCP is reporting unclosed connections but I'm using try-with-resource everywhere I get a new connection

Where "ds" is a BoneCPDataSource initialized as follows: final BoneCPDataSource ds = new BoneCPDataSource(); ds.setJdbcUrl("..."); ds.setUser("..."); ds.setPassword("..."); ds.setCloseConnectionWatch(true); …
sanity
  • 35,347
  • 40
  • 135
  • 226
2
votes
0 answers

Comparing Glassfish Connection Pool With Other Connection Pools

Has anyone done any benchmarking comparing the glassfish connection pool with other fast jdbc connection pools like BoneCP or Tomcat 7 jdbc pool? I am exploring out ways to create the glassfish connection pool programmatically (since the…
Andy Dufresne
  • 6,022
  • 7
  • 63
  • 113
2
votes
1 answer

Where is BoneCP documentation?

BoneCP has a very interesting list of features. A look at Javadoc reveals many tweakable parameters. But there seems to be very little documentation on what those parameters actually do or how to configure BoneCP. For instance, I discovered…
Konrad Garus
  • 53,145
  • 43
  • 157
  • 230
2
votes
1 answer

BoneCP: Is the getConnection method thread-safe or we have to handle that?

While using the BoneCP connection pooling, I came across the following confusions and would like to hear some advise on this: Is the getConnection method of the BoneCP thread-safe? What is the best way to use this when there are many threads asking…
Sudarsan
  • 107
  • 10
2
votes
1 answer

c3p0 or dbcp or BoneCP can handle broken connections

I'm reading about c3p0 and dbcp for handling jdbc connections and heard alot of problems and people saying dbcp is dead but c3p0 can't do jdbc4 and so on. But I don't know if these posts are out of date. Now I hit on BoneCP which explains how broken…
Franz Kafka
  • 10,623
  • 20
  • 93
  • 149
2
votes
0 answers

Having the property hibernate.globally_quoted_identifiers causes BoneCPDataSource not to find com.microsoft.sqlserver.jdbc.SQLServerDriver

I have an application that uses Spring with Hibernate connecting to MS SQL Server. The application connects fine without this property: true However, I need that property as some table…
jth_92
  • 1,120
  • 9
  • 23
2
votes
0 answers

JPA Entity Manager does not throw exception the second time when database is down for the same entity

I am using Spring CRUD Repository for handling my database level transactions. My web application is deployed on tomcat and interacts with MySQL database. The scenario I am testing involves the MySQL database going down with the web application…
2
votes
1 answer

connection gone out while scheduled operation in Spring with BoneCP: "Database access prob lem. Killing off this connection..."

I use injected EntityManagerFactory for scheduled operation: @PersistenceUnit private EntityManagerFactory entityManagerFactory; @Scheduled(cron="0 0/10 * * * *") private void scheduledOperation() { int rows = 0; try { EntityManager…
Nikolay Shabak
  • 576
  • 1
  • 7
  • 18
2
votes
0 answers

play 2.3.3 bonecp exception after upgrade

I upgraded a java play 2.2 application to 2.3.3. The database backend is MySql accessed through ebean. At run time, it throws the following exception when I make an initial request. I tried manually adding guava 17.0 and bonecp 0.8.0 as…
MattX1929
  • 61
  • 1
  • 1
  • 7
2
votes
1 answer

Error loading war to tomcat6

I'm attempting to load my war file to Tomcat 6 and constantly get this error: May 20, 2014 12:35:42 AM org.apache.catalina.startup.ContextConfig init SEVERE: Exception fixing docBase for context [/MyService] …
steve
  • 805
  • 2
  • 9
  • 17
2
votes
0 answers

No.of Inactive session increased while connection made using BoneCP - for every run

I have connected Oracle db with Application. For each and every run, no.of inactive sessions are increased and that means the old sessions are not reused and new three connection s are created for every insert/update operation. Only after shut…
sivaspon
  • 31
  • 6