You may want to add the @XmlTransient JAXB annotation to mark it as
transient.
-Arul
Comerford, Sean wrote:
> So another (probably stupid) newbie question - probably more JAXB than
> Jersey but here goes:
>
> I have a POJO that I want Jersey to marshal to XML/JSON so I put
> @XmlRootElement on it and voila (very cool).
>
> But it has some methods that I do NOT want marshaled.
>
> How do I annotate those such that Jersey / JAXB will not include them
> in the output?
>
> --
> Sean Comerford, Software Engineer
> ESPN.com Site Architecture Group
> Office: 860.766.6454 Cell: 860.329.5842