File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Checking a Boolean Value In JavaScript
Method calling
Jersey RESTful Web Service - How to determine remote host
Problem when using ternary operatory in For Each loop
Object class