users@glassfish.java.net

Re: socket connection timeout in SJSAS

From: Binod <Binod.Pg_at_Sun.COM>
Date: Tue, 06 Mar 2007 16:58:21 +0530

glassfish_at_javadesktop.org wrote:
> Dear Binod,
>
> can you shortly explain what's the problem (if any) with outbound socket in SJSAS?
>
> Your answer will solve a sort of skepticism I've encountered in other developers after my first post.
>
> I'm not a guru and my words were probably too "rough".
>
> Thank you.
>
> Best regards.
>
> Emilio
> [Message sent by forum member 'emilioremogna' (emilioremogna)]
>
> http://forums.java.net/jive/thread.jspa?messageID=206413
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
GlassFish has a socket wrapper that is used to intercept socket
connections so
that services can be started lazily.

http://weblogs.java.net/blog/binod/archive/2005/09/lazy_initializa.html

The wrapper uses NIO behind the scenes. The timeouts in NIO are implemented
with the use of a selector. The code is not using the timeout that is
being passed
in.

thanks,
Binod.