users@jersey.java.net

[Jersey] Re: Generics coleections in return type

From: Martin Matula <martin.matula_at_oracle.com>
Date: Thu, 17 Mar 2011 00:51:16 +0100

Hi,
Currently this is not supported. Let me see if I can fix it.
Martin

On Mar 15, 2011, at 8:43 PM, Shalom Kazaz wrote:

> Hi
> I have a resource method that needs to return
> List<JAXBElement<Message>>
>
> but jersey doesn't support it by default:
> A message body writer for Java class java.util.ArrayList, and Java type
> java.util.List<javax.xml.bind.JAXBElement<com.my.Message>>, and MIME media type
> application/json was not found
>
>
> what is the way to marshall this return type?
>