public abstract class *HttpURLConnection* extends URLConnection <http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLConnection.html>
A URLConnection with support for HTTP-specific features. See the spec <http://www.w3.org/pub/WWW/Protocols/> for details.
Each HttpURLConnection instance is used to make a single request but the underlying network connection to the HTTP server may be transparently shared by other instances. Calling the close() methods on the InputStream or OutputStream of an HttpURLConnection after a request may free network resources associated with this instance but has no effect on any shared persistent connection. Calling the disconnect() method may close the underlying socket if a persistent connection is otherwise idle at that time.
*Since:* JDK1.1 *See Also:* |disconnect()| <http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html#disconnect%28%29>
I am not sure what you want to do, but under these circumstances, are you sure you want to talk about pooling HTTP connections? I have several applications in Struts that use HttpURLConnection extensively.
I can never tell what is the rhyme or reason behind people that say some things are off topic or on topic. I don't understand why HTTP connections are off topic but file uploads, etc., etc., etc., are on topic. This is NOT meant to be contancerous. I just really cannot tell what is off topic and what is not in Struts generally.
There is, with this discussion, also numerous posts about back buttons. I am okay with that. But, I personally don't see how one is more on point re: Struts than the other. If someone has a definition that makes sense of when we get these complaints and when we don't, that would be appreciated. I cannot make sense of it.
Michael McGrady
Prashanth.S wrote:
Hi all, Is there any design pattern that can be followed in order to implement connection pooling.connection pooling doesnt mean only JDBC connections.Iam talking about general http connections to any external systems in order to send requests.
Thanks in advance Prashanth
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!