users@glassfish.java.net

Re: socket connection timeout in SJSAS

From: Binod <Binod.Pg_at_Sun.COM>
Date: Mon, 05 Mar 2007 17:14:34 +0530

>
> // Connect
> private void connect(String domainName, int port) throws Throwable {
> Socket socket = null;
> // inet remote address
> InetAddress inetRemoteAddress = InetAddress.getByName(domainName);
> // unbound socket
> socket = new Socket();
> // socket adrress
> InetSocketAddress remoteSocketAddress = new InetSocketAddress(inetRemoteAddress, port);
> // connect (CTO = 2000 ms)
> socket.connect(remoteSocketAddress, 2000);
> }
> }
>
>
Thanks. There is a bug in my code... Will fix it.
> ------
> QUESTIONS
>
> Is this option a sort of workaround?
>
> <jvm-options>com.sun.enterprise.server.ss.ASQuickStartup=false</jvm-options>
>
Yes. It wont affect any functionality. It reduces the startup speed.

thanks,
Binod.
> Many thanks and regards!
>
> Emilio
> [Message sent by forum member 'emilioremogna' (emilioremogna)]
>
> http://forums.java.net/jive/thread.jspa?messageID=206176
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>