wood burning stoves 2.0*
The moose likes Web Services and the fly likes using @Produces in Jersey Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "using @Produces in Jersey" Watch "using @Produces in Jersey" New topic

using @Produces in Jersey

Peter Kovac
Ranch Hand

Joined: Aug 08, 2010
Posts: 42

I'm wondering if you need to use the @Produces annotation in Jersey resources classes when
you return a SAXSource/DOMSource/Document? If so what should the MIME text be?

Generally what is the best practice on when/how to use @Produces?

Don't get me started about those stupid light bulbs.
subject: using @Produces in Jersey
Similar Threads
Object class
Problem when using ternary operatory in For Each loop
Jersey RESTful Web Service - How to determine remote host
Method calling
Checking a Boolean Value In JavaScript