File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Is javaranch  server idempotent?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Is javaranch  server idempotent??" Watch "Is javaranch  server idempotent??" New topic

Is javaranch server idempotent??

samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
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

Joined: Oct 20, 2004
Posts: 280
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.
I agree. Here's the link:
subject: Is javaranch server idempotent??
jQuery in Action, 3rd edition