users@jersey.java.net

no-arg constructors (probably JAXB-related)

From: Zoltan Arnold NAGY <Zoltan.Nagy_at_Sun.COM>
Date: Wed, 28 Oct 2009 15:16:08 +0100

Hi,

Let's say I have an immutable class Data, which is returned (as a JSON)
by a webservice
method.
Why is it a requirement to have a no-arg constructor for classes used
together with JAXB?

The client application is multi-threaded, so I'd prefer to use immutable
classes and as I already
have a shared jar containing shared classes across multiple programs,
I'd like to reuse it.

Is there something I could do?

Thanks,
Zoltan