which one is better for implementing restful architecture?
jax-rs example :
@GET @Produces(MediaType.TEXT_XML) public String sayXMLHello() { return xmlHello(); } servlet example :
protected void doGet( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { //showUsers( response); } UPDATE:
I can't DELETE THIS QUESTION... Please do not give me a negative rating... thanks.
And so, I prefer to use servlet for implementing the restful... Because of making easy and flexible designs...