Romain, i'm sorry I am drawing a blank. Could you please elaborate? I just
have a simple resource:
@GET
@Produces({ MediaType.APPLICATION_JSON})
public List<Wine> findAll() {
System.out.println("findAll");
return dao.findAll();
}
And a web.xml (3.0) pointing to the resource. This is for JAX-RS 2.0 and
maven within TOMEE.
Is there specific example that meets this simple scenario? I did find this
simple example
but could not see any mention of adding a json writer?:
http://tomee.apache.org/examples-trunk/rest-example/README.html
Sorry, a noob right now...
Nick.