This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

identifying the retry request  RSS feed

 
Ranch Hand
Posts: 130
2
  • 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.
 
Author
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 Tilak
Ranch Hand
Posts: 130
2
  • 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 Tilak
Ranch Hand
Posts: 130
2
  • 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
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?
 
Don't touch me. And dont' touch this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!