users@jaxb.java.net

Re: JAXB1.0.1 generated java/class files are much larger compared to JAXB1.0.0

From: Ganga Sah <ganga_sah_at_yahoo.com>
Date: Mon, 23 Jun 2003 13:46:45 -0700

I forgot to mention that I have already taken care of
this with use of "-use-runtime" so that multiple
copies of impl/runtime package is not created by JAXB.
Even after ingnoring the size of this runtime package,
the size of generated Java files and also compiled
classes from these is surprisingly many times larger
than those in JAXB1.0.0. I find that now generated
Java files have method containing large serialized
data, which seems to be making files large now? Can
one one explain this?
thanks,
ganga
--- Ed Mooney <Ed.Mooney_at_Sun.COM> wrote:
> Hi Ganga,
>
> In 1.0, we shipped the runtime as a library whereas
> in 1.0.1 most of it
> is part of the generated code. This makes it easier
> to keep subsequent
> releases of the JAXB RI backward compatible with
> 1.0.1 applications.
>
> Since the size of the runtime is fixed, the relative
> impact on footprint
> depends on the overall size of your generated code.
> However, if you
> compile multiple independent schemas, you'll get a
> runtime for each. You
> can use the -use-runtime switch to xjc to generate
> code that re-uses an
> existing runtime (see
>
http://java.sun.com/webservices/docs/1.2/jaxb/xjc.html).
>
> Regards,
> --
> Ed Mooney |Sun Microsystems, Inc.|Time flies
> like
> Java Web Services |UBUR02-201 |an arrow,
> but
> Ed.Mooney_at_Sun.COM |1 Network Drive |fruit
> flies like
> 781-442-0459 |Burlington, MA 01803 |a banana.
> Groucho
>
> Ganga Sah wrote:
> > I have sucessfully migrated my application to JAXB
> > 1.0.1 but I find that JAXB generated Java files
> and
> > compiled class files have VERY large size compared
> to
> > those in JAXB 1.0.0. This has increased the size
> of my
> > application aprox. 4 times?
> > I see this as a serious issue in migrating to
> > JAXB1.0.1? Is there a way to fix this problem?
> >
> > thanks,
> > ganga
> >
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com