This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Return primitive Wrapper types for jersey - Restful

 
Anish Shah
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the links i found

best practice to return primitive types

Right now, i have been stuggling to find a simple way to return a primitive type or its Wrapper class. Wrapper classes like Integer, Long are throwing RunTimeExceptions as they don't annotate @XmlRootElement


Exception thrown at runtime :




I want to know how could i return a Wrapper class like below :



 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic