Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is javaranch server idempotent??

 
samdeep aarzoo
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to asked is java server idempotent
i find many times .
javaranch server helpingapplication are not idempotent
they take the same request.
again and again
anyone please comment on this
 
Amit Saini
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not the server that is idempotent or not. It's the HTTP method that gets this quality. All methods other than POST are idempotent. Meaning, you can call them again and again without side effects. For POST, you need to write code to take care of this or else you'll find that your database contains loads of duplicate entries (caused by someone hitting submit again and again)!
That is what is my understanding from HFSJ.
Hope that helps.
Amit
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!