java - Pool of custom objects - best way to keep connections active -


i need redo custom connection pool of objects. connection pool concurrentlinkedqueue of objects, each of performs actions against third-party server (cognos). each object in pool contains token (string) used send requests third-party server. third-party server expire token after 60 minutes of inactivity. need keep token expiring because creating connection scratch third-party server can take several seconds. found way keep tokens expiring, don't know how incorporate open-source connection pool solution c3po or bonecp. or whether "keep alive" logic should performed outside of pool, or within each object itself.

does make sense have timer within each connection object logic keeps token active (say every 10 minutes)?


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -