users@jersey.java.net

[Jersey] Generics coleections in return type

From: Shalom Kazaz <shalom938_at_gmail.com>
Date: Tue, 15 Mar 2011 19:43:24 +0000 (UTC)

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?