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
posted 11 years ago
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