Win a copy of Functional Reactive Programming this week in the Other Languages 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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic