*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "using @Produces in Jersey" Watch "using @Produces in Jersey" New topic
Author

using @Produces in Jersey

Peter Kovac
Ranch Hand

Joined: Aug 08, 2010
Posts: 42
Hi,

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?

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using @Produces in Jersey