java - Apache connection Pool2 - POJO as key -


i have connection factory extending basekeyedpooledobjectfactory. pojo hold user's username , password key. lets me borrow object fine custom credential pojo throws nullpointerexception when returning object pool. if switch key, can username , there no way pass password down somepojo create connection.

i believe may limitation of connection pool or need implement specific methods in credential object? there method use can create somepojo without calling borrowobject , add pool?

i able resolve issue overriding equals , hashcode methods in pojo object i'm using key.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -