Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to close apache XmlRpc connection

843790Jul 17 2009 — edited Jul 24 2009
Hello,

I created a XML-RPC client like this:
config = new XmlRpcClientConfigImpl();
config.setServerURL(url);
config.setReplyTimeout(0);
client = new XmlRpcClient();
client.setConfig(config);
httpClient = new org.apache.commons.httpclient.HttpClient(new org.apache.commons.httpclient.MultiThreadedHttpConnectionManager());
httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(0);
factory = new XmlRpcCommonsTransportFactory(client);
factory.setHttpClient(httpClient);
client.setTransportFactory(factory);
How can I close the connection after I'm done? I tried to set the connection timeout to a small value (100) but that does not work. The connection is immediately closed after I shut down my application.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2009
Added on Jul 17 2009
6 comments
1,103 views