users@jaxb.java.net

Re: how to make a class implement Serialiazable without changing the schema?

From: Dmitri Colebatch <colebatchd_at_gmail.com>
Date: Wed, 1 Jun 2005 13:12:02 +1000

This starts to get a little OT, so apologies to anyone who isn't
interested, but...

Our use case is that we're developing a swing app that uses soap to
retrieve data from the server. we want to cache responses, and are
using ehcache for this - although for simplicity I'd like to just dump
the object into the cache rather than marshalling to xml which I
assume (I have it on my list to confirm this) will be slower and use
more memory.

Having said all that, yes I could do as you're suggesting.

cheers
dim

On 6/1/05, George Datuashvili <George.Datuashvili_at_siebel.com> wrote:
> Do you really need all generated objects to be java serializable?
>
> You could implement some top level java-serializable object that would
> xml-serialize generated objects into string, and then send that string
> into ObjectOutputStream.
>
> The added benefit to this approach is looser coupling: wire contract
> (plus versioning, etc) will be defined by shape of xml document.
>
> Thanks
> -gia
>
> > -----Original Message-----
> > From: Dmitri Colebatch [mailto:colebatchd_at_gmail.com]
> > Sent: Tuesday, May 31, 2005 6:59 PM
> > To: users_at_jaxb.dev.java.net
> > Subject: xjc: how to make a class implement Serialiazable
> > without changing the schema?
> >
> > Hi all,
> >
> > I want to use xjc to generate java classes for 3rd party
> > schemas - as such I don't have control over the schemas and
> > would like to avoid having to xslt them in order to have the
> > generated classes implement Serializable.
> >
> > Is it possible to direct xjc to make all generated classes
> > implement the Serializable interface without changing the schemas?
> >
> > cheers
> > dim
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> > For additional commands, e-mail: users-help_at_jaxb.dev.java.net
> >
> >
> >
>
> _______________
> Siebel
> IT'S ALL ABOUT THE CUSTOMER
> Visit www.siebel.com
>
> This e-mail message is for the sole use of the intended recipient(s) and contains confidential and/or privileged information belonging to Siebel Systems, Inc. or its customers or partners. Any unauthorized review, use, copying, disclosure or distribution of this message is strictly prohibited. If you are not an intended recipient of this message, please contact the sender by reply e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>