response « jaxb « Java Enterprise Q&A





1. Jersey can produce List but cannot Response.ok(List).build()?    stackoverflow.com

Jersey 1.6 can produce:

@Path("/stock")
public class StockResource {
    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public List<Stock> get() {
        Stock stock ...

2. Restful Web Service Resource Context Question and Response Question    stackoverflow.com

i have developed a simple restful web services. Root Resource Class:

@Path("/order")
@RequestScoped
public class CustOrderContainerResource {

  //<editor-fold defaultstate="collapsed" desc="Instance Variable">
  @Context
  private UriInfo myUriInfo;

  @Context
  private ResourceContext ...

3. Trouble deserializing JAXB JSON response via Jersey API client    stackoverflow.com

My Jersey RESTful Service has no problem creating both XML and JSON. Client has no trouble dealing with the JAXB generated XML but cannot parse the JSON version of the ...