If your application uses java.net.URL, and chances it does are very high, and you are using Sun's JVM (since 1.4.2), you should set thesun.net.client.defaultConnectTimeoutandsun.net.client.defaultReadTimeoutsystem properties to a reasonable value. Otherwise, if a remote site hangs, your application or server will also hang.
Useful to know…