• Post Reply Bookmark Topic Watch Topic
  • New Topic

identifying the retry request

 
Bala Gangadhar
Ranch Hand
Posts: 113
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am exposing some method as web service using JBOSS RestEasy api.
The client is using HTTPClient to make a request to my webservice. The client can retry if he failed to connect.
There may be another possiblity of sending the same request parameters to get the information.
Now i need to identify whether the request is a new http request or a retry request.
How can i achieve this..?

I think my question is clear.. if need more info let me know...

Thanks in advance..
Bala.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without being explicitly called as a retry I don't know how you could identify such a request--it could just be two identical requests spaced very closely.
 
Bala Gangadhar
Ranch Hand
Posts: 113
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am thinking about is there any unique id in each http request which is common for all retry request...
 
Bala Gangadhar
Ranch Hand
Posts: 113
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the apache http client api says the default timeout is 0, what does it mean..
If we configure it to some 2000 milli seconds and number of retrys as 3, does it mean, it wait for two seconds for every retry request or total 3 retries will be done with in this two seconds.... ?

I want to use this behavior to identify the retry requests...


Regards,
Bala.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How will you use that behavior to identify retry requests?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!