Mike, That approach does not work because it requires JDK 1.4 or later to compile. The code both runs and compiles with JDK 1.2. With most JVMs, I also believe it would fail at run-time on J2SE earlier than 1.4, because the JVM will try to resolve external names when code within the class is run.
I am sending you privately a soap.jar I built with a possible run-time "fix". Scott Nichol ----- Original Message ----- From: "Ladwig, Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 20, 2002 9:52 AM Subject: Re: Timeout problems > >> - I'm not knowledgable about packaging binary jars; is there a way to > >> conditionalize the HTTPUtils code so that on JDK1.4 and above the > not-broken > >> socket API is used? > > >Yes. > > Is this the right packaging approach? Would you accept such a patch? > > if (java.lang.version >= 1.4) > { > s = new Socket(); > if (proxyUsed.getValue()) > s.connect( new InetSocketAddress(httpProxyHost, > httpProxyPort), timeout ); > else > s.connect( new InetSocketAddress(host, port), > timeout ); > } > else > { > if (proxyUsed.getValue()) > s = new Socket(httpProxyHost, httpProxyPort); > else > s = new Socket(host, port); > } > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>