Jakarta HTTPClient , dont wont to wait for a response.

Hi there.
I wonder if I can do that , I want to send a post\get request to another server but I don�t want to wait for a response from it.
Actually, I want to continue with my program regardless to the response and don�t want to be delayed while waiting.
How can I do it?
Hope I made myself clear, thanks.
Shlomi

spawn a Thread that will send the request. When it's time to process the response, check the Thread to see if any response was returned from the server.
example
public class MyThread extends Thread{
    private String response = null;
    private int status = 0;
    private boolean complete = false;
    public void run(){
         // TODO: et the response from the server
         // set the response and status and complete (synchronize all variable when doing this)
    public boolean isComplete(){
        return complete;
    public String getStatus(){ return status; }
    public String getResponse(){ return response; }
public class Demo(){
    public static void main(String args[]){
        // do some work
        MyThread thread = new MyThread();
        thread.start();
        // do some more work (don't wait for server response
        // now it's time to get the response
        while (!thread.isComplete()){
            try{   Thread.sleep(1000); } // sleep for 1 second
            catch (Exception e){ }
        String response = thread.getResponse();

Similar Messages

  • Ichat "waiting for a response"

    HI,
    I just made an AOL account so i could ichat with my friend. When i try to initiate a call it keeps saying "waiting for a response". When she tries to call me
    it says the same thing for her. What do i do?
    PS: I dont even get a message to accept the call
    I have OS X mavericks

    Hi,
    IF you are sure iChat is set up correctly are you sure your routing device is ?
    There are ways to get AIM or Google Logins to access the servers to see your Buddy List by dropping the login port to 443
    However this will not allow you to Video Chat (Audio Only Chat or Screen Share)
    I am also not sure if you are trying to chat from AIM to AIM or Jabber to Jabber Buddies (you cannot do AIM to Jabber)
    8:18 PM      Sunday; October 30, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Firefox freezes about five seconds after I open it, and whenever I use Ctrl+alt+delete to close it I get told that it is waiting for a response from me.

    I am having a problem with Firefox. Whenever I open it, it runs fine for about five seconds and then freezes. A small white rectangle appears in the upper left corner of the browser window. The screen still scrolls fine, but whenever I try clicking on anything (including the menus in the toolbar), it just gives me an unresponsive 'ding' sound. When I try closing the programme with Ctrl+alt+delete, I get a message saying 'The system cannot end this programme as it is waiting for a response from you'. I originally had this problem with an earlier version of Firefox and tried installing Firefox 4 to see if this helped. It worked for two days and began doing it again. I have already tried un- and re-installing Firefox and restarting my computer, and Firefox will not run properly for long enough to let me disable any add-ons or plug-ins. What can I do to fix this?
    I've added a couple of screencaps of the problem. (or tried to)
    [http://i53.tinypic.com/161hvh2.jpg The white rectangle]
    [http://i51.tinypic.com/dwsq1.png Error message]

    Have also since found out that to start FF4 in safe mode you just hold shift whilst double-clicking the icon. We only find these things out after the event, murphy's law!

  • Still waiting for a response from Adobe regarding the post "Printing a pdf from a marked-up pdf".

    Still waiting for a response from Adobe regarding the post "Printing a pdf from a marked-up pdf" dated 15 Dec 2012 9:20 AM.

    Look everyone that comes here with a support problems has gone through all the normal channels, around and  round in circles with no one seeming to be interested. They've called every phone number, every email address they can find. They have been put on hold and bounced fifty times to another operator only to be hung up on. If Adobe would bring back support to main land and have people that know what's going on instead of having people that people can barely understand read from scripts. Scripted information only applies about 10 % of the time. I'm just giving people an alternative. after they have torn their hair out going the normal route.  If they had been able to get a solution they wouldn't be coming here for help.
    There should be a forum set up just for people to air these issues and Adobe employees forced to man it. Then we wouldn't have to have such a Bad attitude. Right now Adobe's Support reputation is worse than Intuit's which did have the absolutely worse on the Planet. Now they are number 2.
    You know it yourself that Adobe's support is absolutely worse than terible. However to prevent me from being banned from the forums I will simply will provide the adobecare email address from now on
    So let's sweep it under the rug.

  • Remote Function module to wait for the response.

    Hi .
    i just created the remote function module to call the webmethod by putting the parameters in tables (tab) for webmethods to pick the data from RFC and parameters in changing (tab) to collect the reponse from webmethods ,i just want to know if this is the right way of creating the RFC for webmethods and the RFC need to wait for certain time until it should get the response from webmethods.
    can any body guide me in this on how i can make the rfc to wait untill it will get the response from webmethods.
    waiting for your response.
    regards.
    Varma

    Hi Jaswanth,
    FM used to upload the data from the non sap system to the SAP sytem is the GUI_UPLOAD ans GUI_DOWLOAD is downloading the data from SAP to the presentation server .This file can be xls,tab or space deliminatior ettxt fiel.
    I think this was your requirement.
    Pooja

  • How to call a ALSB Proxy Service and don't wait for his response. Publish M

    Hi,
    I have a Proxy Service called PS1 that will invoke and another Proxy service Called PS_ProcessingNode that invokes 10 differents webservices during the orchestration and takes about 2 minuts.
    I would like that if invoke PS1 that will invokes PS_ProcessingNode (asyncronously) and immediatly PS1 will return "OK" (don't wait for the response of PS_ProcessingNode) .
    For simulate this scenario I am testing with:
    - PS_Processing is a WSDL without response that has a JavaCallout with a Sleeper of 10 seconds.
    - PS invokes with "Publish action" to PS_ProcessingNode but is waiting for PS_Processsing finish. I don't want this beahivour.
    How I can do it for PS doesn't wait for the response of the PS_ProcessingNode?
    Thanks.

    - PS invokes with "Publish action" to PS_ProcessingNode but is waiting for PS_Processsing finish. I don't want this behavior.
    I'm glad you have a solution using JMS. But still Publish action should not wait for response. If you are seeing that behavior, you can contact Support with an SR to get it fixed.
    Manoj

  • Azure Service Bus client: Best way to wait for server response?

    Hi,
    I have a web service that needs to send a request on Azure Service Bus and wait for the response. The web service must operate synchronous as seen from the web service client, that is:
    public Response WebServiceMethod(Request)
    senderQueueClient.Send(Request);
    // wait for response from receiverQueueClient
    // and return to web serviuce client
    return response;
    This can be solved using mutexes that are updated in "receiverClientQueue.OnMessage". But that is hard work and if I Google the matter, I find several options to deal with this - especially when using .NET 4.5.  And there are also some built-in
    stuff in the QueueClient.
    But how to do this best? Can someone point me in the right (easy) direction?
    Werner

    Hi,
    May I know what are you use queue to achieve? can you give us further information for a better help.
    Regards

  • Sending a request to a servlet without waiting for a response

    Hi,
    I have a client application that needs to send information to a servlet for processing. I would like to be able to send the information in question without having to wait for a response from the servlet. The reason for this is that I want to speed up the "sending" process. I know that http communication is based on TCP which is a connection-oriented network protocol, but I thought maybe there was a work-around to this.
    Thanks in advance for your help,
    Chris

    There r two ways to do this. First, if you can modify the application simply don't wait for the response do whatever you want and ignore the response. If you need the response in order to continue you will have to wait, but you can do this in a separate thread, while the main thread can do other things.
    Second, if you can't modify the application but you can modify the servlet, make the servlet respond as quick as possible, doing the work after having answered. Once again if the application needs the results of the process there is no way, you'll have to wait.

  • For some reason my video just says, "waiting for a response from _____"?

    For some reason the video chat doesnt even read that the other person has accepted the chat? I know the person who I am trying to video chat has no problem connecting with other people. Help please?

    HI,
    iChat 2 through to iChat 6 then Messages beta in Lion and Messages full app in Mountain Lion can do Video chats.
    I have an older G4/1ghz Dual Processor computer booted in to OS X 10.4.11 and iChat 3.1.9
    I have issues with Messages trying to Invite the iChat 3.x.x machine.
    It's video chat window does the same as yours, stating  it is " Waiting for a response from xxxx"
    However no Visible invite ever appears on the iChat 3. computer.
    On the other hand I can invite from iChat 3 to Messages and make a connection.
    I am not having a issue from Snow Leopard (iChat 5) to Messages in Mountain Lion.
    I had based my first reply on the Question
    For some reason the video chat doesn't even read that the other person has accepted the chat?
    (i.e. nothing about the computers involved).
    From the newest MacBook Pro (not retina) to the new MacBook Pro (not retina).
    This bit in your latest reply does really tell me where you bought them and what was installed when you got them and what is Installed now.
    Some people have described problems on Lion machines after installing the latest Apple Remote Desktop Client
    (Everyone has Apple Remote Desktop Client on their System and it is used with iChat in iChat Screen Sharing - it provides the Engine as it were.  It also does the Screen Sharing within the Finder as well as providing one end of the Apple Remote Desktop help)
    As a starting point I would go to the app's menu > Preferences > Video Section ans set the Bandwidth Limit on both machines to 500kbps
    This can help if there are vast differences in Internet speeds at either end.
    8:01 PM      Tuesday; August 21, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • CCP related: A timeout occured waiting for a response from the ECU

    Hello All,
                I had just started using ECU Calibration tool kit software. Iam using USB 8473 for my application.When I tried to run the VI after loading the *.A2L file, I see an error message saying "A timeout occured waiting for a response from the ECU ". Does anyone know how to communicate with the ECU through CCP.
            Iam pretty sure that Iam using the right cable. I also checked the address of the parameters using Get property.vi what iam trying to read, wether they are matching with the address in the *.A2L file or not.They are matching. However I was able to communicate with my ECU when I use the same device to read the data over J1939 data link, based on arbitration ID's, with the Vi's from CAN Frame to Channel Conversion Library.
        Can any pls help me out how to communicate with my ECU using CAN Calibration Toolkit software.
    -Lucky.

    Hello,
              I am sending you an attachment of the manual for the ECU Calibration tool kit . Please go through the manual it will clarify your doubt. Moreover , check for can vi's in the example finder in labVIEW. Those will help ....
    I am sending you a link which gives you some insight about the installation of  CCP command set and the use of the toolkit with the USB CAN hardware.
    http://digital.ni.com/softlib.nsf/websearch/D7DE248D07CAD00086256ED3004BAB8A?opendocument&node=13206...
    Drivers and Updates: ECU Measurement and Calibration Toolkit 2.1
    Attachments:
    can manual.pdf ‏1437 KB

  • My dad made a mistake on purches on my ipad, and now he owes money he can't pay off right now. icloud wont work because o it, how can I get my icloud to work so i dont have to wait for him to pay itunes off???

    (we share a apple id) My dad bought some inapp  purchases, and he thought it didnt work. so he did it again. he can't pay it of right now, and icloud reuses to work on my new ipod. i cant just make a new id, all my music is on that. how can i get icloud to work, WITHOUT waiting for my dad?

    iCloud is free.

  • How to make my object to wait for server response

    Hi ,
    I need some one suggestions on thread concepts.
    First Let me know my scenario is fit for thread concept.
    is it possible then how I can reach to solution.
    I have scenario like
    I send a request to server and server is taking some time to process the request.
    if I am calling the method on server it showing no results bez i know server takes some time.
    for that my calling method has to be wait for some time.
    Thanks
    Babu H

    Hi ,
    Let me give more information about that between my java class and server
    i have the bridge library which is also written in other than java.
    for that i used the njawin tool make as java wrapper class and accessing the java wrapper class(Bridge Server).
    the java wrapper class has post_request and poll_response methods so that why i 'm using only these methods in my java class to access the server.
    exactly I don't which technology is resided in Brdige server and actual Server bez that has been developed some one.
    poll_respnse means server has posted the response to client.
    Thanks
    Babu H

  • Display a message without waiting for user response

    Hi,
    I'm currently trying to find the best way to display a message, and multiple messages to the user, so that he is informed of the processing.
    I've tryied the dialog box but it's waiting for user confirmation so it interrupts the execution of the VI.
    Another precision is that I call the dialog in a case structure, so does it act?
    I'm thinking about using a VI dedicated to the displaying of the message but I may not be able to display multiple message boxes.
    Can anyone help me to use the best way?
    Thank you in advance.
    Bim

    You can build the message display into your vi by using the techniques shown in the attached vi (LV7.1.1)
    It is just a string indicator with large font size, and using property nodes to show/hide when necessary.
    - tbob
    Inventor of the WORM Global
    Attachments:
    MessageDisplay.vi ‏31 KB

  • Should clients of long-running processes wait for a response?

    I am a bit confused by the worklist tutorial where the client waits around for
    a response from the worklist process that blocks on human input. This may be okay
    for the sample application, but is it a realistic scenario? Have you designed
    any practical worklist processes this way? I would have thought that the client
    of a worklist process would simply trigger the process and go away. Eventually
    when the human involved in the process would take some action, the process would
    then, for example, send a message to some application. What do you think? I would
    be interested in your opinions and perhaps some real examples of how you are using
    worklists.
    Thanks.
    P.S. Is it even possible for a worklist client to trigger the process and go away?
    Would the process die because the client has gone out of scope?

    I agree with your comments. In being honest as well, we unfortunately do have SRs that get behind or missed. It's very frustrating on our side as well when we have these come up. We have implemented a number of technologies and also human touch to help us catch these and continue to focus on ways to overcome these delays. I know it's frustrating for you as well.
    Our customer satisfaction is very high and actually continues to increase each Qtr. Our data shows us our three key satisfaction areas are; speed of response, speed of resolution and followup.
    Chat support helps us in response time, but sometimes may hinder us in resolution times. Especially with more complex issues. Our goals were not to totally replace the phones with chats, but to use chat to allow us to respond more quickly, which it has done. We're now focusing our folks to realize it's still ok to call you when the Chat is hindering resolution and it would be quicker to talk live about the issue.
    We resolve over half of the SRs on the first day. We continue to focus on speeding up the resolution of those that go beyond the first day. A couple things we've implemented are we call you back at least every 2 days when the SR is in Novell's court and at least every 5 days when it's in your court. We've also implemented timed escalation for SRs and are now looking at also escalating when progress is not being made after a certain number of days (rather that just time open). The goal is to get you in the hands of the right person asap to speed up the resolution time.
    We're also having Managers call you on more and more SRs before being closed to double check your satisfaction with the SR.
    Our dream is to never have you need to ask us for attention on a SR. We continue to make progress on it.
    I look forward to your thoughts and other ideas you may have to help us improve,
    -Todd
    Todd Abney
    Technical Support Director
    Novell

  • Waiting for a response for chat

    I have been waiting for 2 hours with no response from anybody on the chat feature. My case number is ###########.
    Case number redacted by moderator.

    Sorry for what you are experiencing, but this is not Adobe Technical Support. We cannot do anything about delays with the chat feature. Sorry. Also, please don't post any account or transaction data here. Thanks.
              - Dov

Maybe you are looking for