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
Post a Comment