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 -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -