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
2
votes
0 answers

Thread dump from a non responding play server

It has been observed that this play app stops responding to new requests after a while. trying to analyze this thread dump. I have uploaded it on a gist here. do you think BoneCP is causing this behavior looking at the thread dump?
user2066049
  • 1,371
  • 1
  • 12
  • 26
2
votes
1 answer

Jooq, Spring, And BoneCP connection closed twice error

I am using Spring 4.0.0, along with jOOQ 3.2.0 and BoneCP 0.8.0 for a web application. I have the PersistenceContext configured the same as this guide (please skim read it's a little too much code to paste…
Paul
  • 133
  • 2
  • 9
2
votes
1 answer

Java Connection Pool with BoneCP STRANGE error

I'm a newbie of java programming, and I'm trying to learning. I have a database mysql and I manage the connection with connection Pool, BoneCP is the library that I use. The code for create a Pool is this: BoneCPConfig config = new…
Andrea Catania
  • 1,361
  • 3
  • 21
  • 37
2
votes
1 answer

How to configure C3P0 or BoneCP Datasources to withstand database failover/outage

I have a Spring/Hibernate based application which I need to modify to withstand a database outage up to 1 minute. Instead of writing my own hack I took a look at C3P0 and BoneCP datasources to see if they could be configured for this…
user2836274
  • 21
  • 1
  • 2
2
votes
1 answer

More conccurent users of Netty and BoneCP / Basic Socket Server

Disclaimer- I am not a Java programmer. Odds are I'll need to do my homework on any advice given, but I will gladly do so :) That said, I wrote a complete database-backed socket server which is working just fine for my small tests, and now I'm…
davidkomer
  • 3,020
  • 2
  • 23
  • 58
2
votes
1 answer

Sbt package manager not resolving at Heroku

Hi guys im trying to add a new bonecp version to my play framework 2.0.4 app at heroku, but im getting [info] downloading http://oss.sonatype.org/content/groups/public/com/jolbox/bonecp/0.8.0-rc2-SNAPSHOT/bonecp-0.8.0-rc2-20130128.135547-1.jar ... …
Jeff Rod
  • 23
  • 3
2
votes
2 answers

BoneCP with JSF Spring Hibernate Configuration

I tried to use BoneCP with my JSF-Spring-Hibernate combination, following BoneCP configurations on their website. I am using Intellij as IDE and i added framework supports directly into project but BoneCP and its needed libraries are taken from…
oko
  • 1,295
  • 1
  • 14
  • 30
2
votes
4 answers

Play Framework 2.0.4 and BoneCP - so how to avoid connections leak?

There is just one place in my app, that uses connections. It looks something like this: Connection conn = Db.getConnection(); try { // do some job } finally { conn.close(); } So, connection is always closed. But after some time i always get…
2
votes
2 answers

BoneCP and Netty basics

In order to efficiently use connection pooling via BoneCP while programming a Netty server- where is the correct place for the connection pool and where to get a new connection for that pool? At a glance- I'm thinking that BoneCP should be some sort…
davidkomer
  • 3,020
  • 2
  • 23
  • 58
1
vote
1 answer

BoneCp no suitable driver found Spring 3.1 Hibernate 4.0

I'm currently using BoneCP as a connection pool manager since there is no real alternative (c3p0 is dead). I'm using hibernate 4 and spring 3.1 and everything works fine. The only thing that bothers me is the registration of a custom driver, like…
Niels Van Haren
  • 400
  • 2
  • 13
1
vote
1 answer

I want choose a connection pool for high throughput application

I used C3P0 connection pool to now but get not stable behavior. I test in various kinds of environments and improvement database options. I found today Tomcat 7 jdbc connection pool released and get it. Do anyone use it and get better performance…
Sam
  • 6,770
  • 7
  • 50
  • 91
1
vote
2 answers

How to fix: Exception in thread "main" java.lang.NoClassDefFoundError in BoneCP

I'm working from this example and I am running into this error after adding log4j, slf4j and bonecp to the project: run: Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/FinalizableReferenceQueue at…
davidahines
  • 3,976
  • 16
  • 53
  • 87
1
vote
1 answer

Which SLF4 Logging jar do I need for BoneCP?

There are a dozen SLF4 jars within the project and I can't tell which I need to run BoneCP. Is it just slf4j-simple-xxx.jar, etc.
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
1
vote
1 answer

BoneCP automatic reconnect

Does BoneCP have any mechanism (i.e. configuration) that will allow an automatic reconnect to a MySQL database if the database has been taken offline and restarted
David Loy
  • 963
  • 1
  • 8
  • 14
1
vote
1 answer

How to set number of partition when migrating from BoneCp to HikariCP

I am in the process of changing BoneCp to access our postgres database to HikariCp. Can someone help me with specifying the partition count in HikariConfig. From: BoneCPConfig config = new BoneCPConfig(); …
Raman
  • 216
  • 3
  • 15