Advertisement

05.23.2008 at 11:24AM PDT, ID: 23428504
[x]
Attachment Details

Single post attempt for HttpClient.executeMethod(PostMethod)

Asked by NPSRWR in Java Standard Edition, Java Servlets, New to Java Programming

Tags: Java

I am writing a Java web application using the Apache Commons  HttpClient.executeMethod(PostMethod)  with a MultiThreadedHttpConnectionManager.

It is a multi-threaded application where each thread has one connection to the host.  I need to require that, for each client thread, if the first post attempt fails, the executeMethod function either returns a failure indication or throws an exception.  Is this possible?  If so, could you elaborate on what parameter to set and how to set it?

Please let me know if you need more information.

Thanks!

Start Free Trial
[+][-]05.23.2008 at 02:15PM PDT, ID: 21635897

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 06:02AM PDT, ID: 21651467

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.27.2008 at 11:43PM PDT, ID: 21658200

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Standard Edition, Java Servlets, New to Java Programming
Tags: Java
Sign Up Now!
Solution Provided By: Meritor
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.27.2008 at 11:44PM PDT, ID: 21658204

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628