users@jersey.java.net

[Jersey] How to serialize a Map object from JAXB?

From: Brendan cheng <ccp999_at_hotmail.com>
Date: Mon, 26 Dec 2011 10:29:26 +0000

Hi,
I was trying to use this
@XmlElements({ @XmlElement(name = "sysFields", type = java.util.HashMap.class) })
Map<String,Object> sysFields;
to transfer sys fields from server to client side and instantiate the object bit failed.
Is there a way of doing this?
Cheers,
Brendan