/** * M�todo - Servicio Web REST que sirve para remover registros a la base de datos * * @param id, parametro enviado al metodo con tipo de dato: Integer * @return Tipo de retorno String */ @DELETE @Path(value = "Persona/{id}") @Produces(value = "text/plain") public String remover(@PathParam("id") Integer id) { String mensaje = "OK"; try { personaEJBLocal.remover(id); } catch (Exception e) { mensaje = "BAD"; e.printStackTrace(); } finally { } return mensaje; }