users@grizzly.java.net

Re: CacheableConnectorHandlerPool and broken connections

From: Tomasz Kowalczewski <tomasz.kowalczewski_at_gmail.com>
Date: Fri, 10 Oct 2008 14:36:49 +0200

On Wed, Oct 8, 2008 at 5:04 PM, Oleksiy Stashok <Oleksiy.Stashok_at_sun.com>wrote:

> Does the CacheableConnectorHandlerPool handle such events in any way? Or
> maybe I should handle closed connections (connector handlers) using
> ConnectionFinder class (before creating/returning new connection)?
>
> Current cacheable implementation doesn't have mechanism to figure out,
> whether the connection is closed before it actually tries to use it.
> You're right, extending the ConnectionFinder could help here to write
> smarter logic.
>
> Let me know if you'll have more questions or if you'll have the
> implementation ready - it could be interesting to take a look at it.
>
> Thank you.
>
> WBR,
> Alexey.
>

Hi,

Thanks for your reply. Currently I am thinking about some quick and dirty
solution to this problem, I'll post my findings when ready.

Tomasz