vladmihalcea/flexy-pool

Throw UnsupportedOperationException for BoneCp and Vibur DBCP on pool resize

vladmihalcea opened this issue · 1 comments

BoneCP and Vibur DBCP does not support pool resizing natively, as C3P0. This way, it's impossible to guarantee what will happen to the current acquired connections one the pool has to be destroyed and recreated, only to take into consideration the new pool size.

Therefore, the safest approach is to throw an UnsupportedOperationException whenever the max pool size is about to be changed and document the behavior.

Fixed in release 1.2.1