• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Please help me correct my application design(using REST API and jersey)

 
Ranch Hand
Posts: 440
4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Jersey API for REST WS.I have Customer POJO which has customer Id, customer details e.t.c....If I use DELETE method for deleting customers, as soon as the server is restarted the deleted resource(Customer) will still be there as Rest API is stateless....So for deleting the record I am passing the parameter Customer Id using GET or POST and deleting the record from the database.This is working fine. Is this the correct way or I should use the DELETE method instead? If I use DELETE method the record(custoner) will be deleted, but as soon as the server is restarted , the delete record is still shown(because of statelessness)..

Please advice...Thanks...

 
reply
    Bookmark Topic Watch Topic
  • New Topic