I am trying to make a java controller class that accomplishes the following tasks:
when it receives one request , it willprocess on it.
when the process is done and before the return statement , I instanited one Httpclient and try to make one request exactly like current one and post it to another server.
I already done with the tasks. but I wonder what happens here : (below)
HttpResponse response=client.execute(post);// will the program blocks here ?
As I search the internet , it seems to be true that the program blocks and that's not what I want.
I also read about the asynchronise things , but it seems to process the response in the end which may still takes some time. ( not quite sure )
How could I just send the request and cares nothing about the response. Is it possible ?
Sorry if i get everything messed up . It will be really kind of you to shed some light on my mind or just offer some advice on this topic. Thanks.