hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: Invoke a httpclient in a EJB
Date Fri, 06 Aug 2004 12:03:35 GMT
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


Mime
View raw message