Hey,
I am developing with the build in Jetty. When I call delete transaction with the following rest service. I get 405 error. How can I activate those options in Jetty?
Thanks
Andy
Restful Service:
I am developing with the build in Jetty. When I call delete transaction with the following rest service. I get 405 error. How can I activate those options in Jetty?
Thanks
Andy
Restful Service:
Code:
// http://127.0.0.1:8888/rest/sql/deleteEmail/1 @DELETE @Path("deleteEmail/{id}") @Produces(MediaType.APPLICATION_XML) public DEmail deleteEmail(@PathParam("id") long id) { DEmail email = read(id); if(null != email) { EntityManager em = factory.createEntityManager(); em.remove(email); } return email; } Error Message
Code:
HTTP ERROR: 405 Method Not Allowed RequestURI=/rest/sql/deleteEmail/1 Powered by Jetty://
Comment