hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karthikeyani K <karthikeya...@yahoo.com>
Subject Re: Invoke a httpclient in a EJB
Date Fri, 06 Aug 2004 12:45:52 GMT
thanks mike.

Michael Becke <becke@u.washington.edu> wrote:Hi Karthi,

> So does the following code snippet perform what Mike have mentioned...
> HttpClient client=new HttpClient(); // Which will create a 
> SimpleHttpConnectionManager
> // by default. So we 
> need not create an explicit
> 
> //HttpconnectionManager
>
> // Perform post
> ..........
> //Release the connection
> postmethod.releaseConnection();
> // Close the socket connection
> client.getHttpConnectionManager().getConnection().close();
>
> Is this the correct way of closing the connection.

That should work just fine.

Mike


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org



		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message