0

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 bonecp defaults, but I've tested this with transactionRecoveryEnabled set to true too.

Considering that c3p0 and dbcp both have this functionality, is there something I'm doing wrong?

skaffman
  • 398,947
  • 96
  • 818
  • 769
qwerty
  • 3,801
  • 2
  • 28
  • 43
  • A thread dump indicates that the thread is waiting for a read lock in BoneCPDataSource (line 133) – qwerty Feb 09 '12 at 04:35

1 Answers1

2

Try using lazyInit config setting, it's meant for that feature.

wwadge
  • 3,506
  • 1
  • 19
  • 28