Can any one help me with a sample code of how the URLConnection reuses the connection?
URLConnection con = new URL("http://www.someurl.com").openConnection();
I am using the above code to make a URLConnection. For the first time, the URLConnection will open a new connection to the specified URL. But after that it will reuse the existing connection from the pool. Is there any to prove this (I mean through println()) ?
Actually is there any way to retrieve connection reused status from the pool?