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
1
vote
1 answer

java bonecp connection-pool handling issue

I can't find anywhere is web code example to how i enable the connection watch because i get this message in log 153624 [com.google.common.base.internal.Finalizer] WARN com.jolbox.bonecp.ConnectionPartition - BoneCP detected an unclosed…
user502967
  • 327
  • 1
  • 3
  • 13
1
vote
2 answers

Why is BoneCP causing Derby ShutdownException after instantiation?

Basically I do: CONNECTION_POOL = new BoneCP(config); And then right after: CONNECTION_POOL.getConnection().createStatement("SELECT * FROM myTable"); which will sometimes (not always) throw a org.apache.derby.iapi.error.ShutdownException. I…
Stephane Grenier
  • 15,527
  • 38
  • 117
  • 192
1
vote
0 answers

guava and bonecp in webstart giving security exception

I have an APP that is run via java webstart. It is using the BoneCP library which is dependent on the Google guava library. When it starts to down load it fails on the guava jar file. Antiviruses blocks the download giving me the following.Security…
Scott
  • 11
  • 1
1
vote
1 answer

BoneCP JDK 5 Maven Depedendency

How do you have to configure maven to pull down the JDK5 version of BoneCP?
John Oxley
  • 14,698
  • 18
  • 53
  • 78
1
vote
1 answer

How do I prevent a database call from hanging in jdbcTemplate.query when the database is not available?

I am using the Spring JDBC template and a BoneCP Connection Pool. When I purposely set the JDBC URL to an invalid value (to test how my system works on failed database connectivity), it throws an UnknownHostException on server start-up, but the…
Thunderhashy
  • 5,291
  • 13
  • 43
  • 47
1
vote
1 answer

Why isn`t BoneCP establishing a connection?

I'm trying to test BoneCP using the test code on their website. However, I don't seem to be able to actually establish a connection to the server hosted online. My code is below maybe I'm making rookie errors since I'm a noob. THanks for your help! …
Abdi Osman
  • 43
  • 1
  • 7
1
vote
1 answer

Resizeing BoneCP pool

Is it possible to grow and shrink the pools dynamically. I would like to be able to grow the pool should it be needed and then shrink it down again when load is less all without restarting the application. I tried setting the max connections…
likenoother
  • 429
  • 1
  • 3
  • 11
0
votes
1 answer

BoneCP does not supply a valid connection if it was created when the database was down

I have a use case where the database (sybase) may be unavailable when bonecp (0.7.1.RELEASE) creates a connection pool. When it is later available however, if my app requests a connection the call never returns. I'm using out of the box config…
qwerty
  • 3,801
  • 2
  • 28
  • 43
0
votes
1 answer

BoneCP Enterprise Use & General Stability

We would like to use BoneCP in our application but as part of the assesment process I need to answer the following questions Are there known examples of BoneCP being deployed on enterprise scale projects. How has it performed ? The current release…
0
votes
1 answer

DB Connection Starvation

I am using Spring 2.5; a SimpleJdbcTemplate using apache-commons-dbcp connection pooling. There is also a thread pool which spawns a thread when a query is run (several queries are performed and their results processed once all are complete, so the…
dontocsata
  • 3,021
  • 3
  • 20
  • 19
0
votes
1 answer

Cancel current transaction with Spring TransactionTemplate

I am using a connection pool and the Spring TransactionTemplate. If you want to shutdown the connection pool first all connection have to be returned to the pool, this means connection.close() has to be called. I have one thread using the…
Franz Kafka
  • 10,623
  • 20
  • 93
  • 149
0
votes
1 answer

Strange memory grow in temporaryLobs while fetching CLOB with oracle jdbc driver in java app

Goodday everyone. Faced strange OOM after switching from reading varchar field to clob from Oracle database in java application. (We are using oracle.jdbc.driver with bonecp connection pool + spring jdbctemplate) Heapdump shows(see picture) that…
recvfrom_ro
  • 87
  • 2
  • 5
0
votes
0 answers

Hibernate connection pool makes time outs and finally app server getting hanged

We have a Spring + Hibernate REST API app which is running on the Jetty server. So far it worked fine. but recently we had couple of incidents where the Jetty server hanged and app getting stuck. When we are finding the root cause we could see that…
0
votes
1 answer

Integration of Spring TransactionManager with BoneCP connection pooling

I'm using BoneCP connection pooling mechanism and I want to manage my transactions using support of the Spring framework. I found an example about Spring Transaction Management and I tried to apply this example. I got a DataSource instance from my…
gul.cabuk
  • 1
  • 4
0
votes
0 answers

Optimal BoneCP configuration

I my web application ,BoneCP DB connection pool configuration as following, it is creating too may DB connection I need to know what is the default number of DB connection below configuration created What is the optimal BoneCP configuration(…