Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jersey-dev] using jersey with Glassfish

I apologize if this is a second post on the same topic.

It looks like according to the Jersey docs, Jersey is already included
with Glassfish.
https://eclipse-ee4j.github.io/jersey.github.io/documentation/latest/deployment.html#deployment.appservers

Is there something I need to do to get the marshalling to use the
annotations when generating the json?

@XmlElement(name = "registered_state_abbr")
private String registeredStateAbbreviation;

@XmlElement(name = "disciplinary_action_end_date")
@XmlSchemaType(name = "date")
@XmlJavaTypeAdapter(DateAdapter.class) 
private Date end; 

-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture


Back to the top