wwadge/bonecp — pull request #7 by markwoon (2012-05-09 02:13:22+00:00)
Title: DefaultConnectionStrategy should not be a singleton

Wallace, this is to solve https://bugs.launchpad.net/bonecp/+bug/996871:

DefaultConnectionStrategy on the master branch is currently designed as a singleton, and this is causing us major problems.

Scenario:

1) Connect to DB #1 with BoneCP as a connection pool (pool1).
2) Connect to DB #2 with BoneCP as a connection pool (pool2).

All requests for connections on pool1 return connections from pool2.

Patch a709d455 takes the simplest route and removes the singleton restriction on DefaultConnectionStrategy.