users@jaxb.java.net

Re: use case for Unmarshal / Marshal callback events

From: Dmitri Colebatch <colebatchd_at_gmail.com>
Date: Thu, 3 Nov 2005 06:59:59 +1100

I might also add that these callback methods aren't called when you
use an XmlJavaTypeAdapter to marshall/unmarshall. Whilst this is
fairly obvious when you think about it, I've been caught out trying to
figure out why my newly created callback method isn't being called (o:

Just thought I'd mention it.

cheers
dim

On 03/11/05, Mark Hansen <mark_at_javector.com> wrote:
> Thanks - that is a helpful example.
>
> Dmitri Colebatch wrote:
> > Not sure of the intended use, but I can tell you what we're using it
> > work. We have a complex business object that has data persisted in
> > two places - half of it is read/write and we load/save using a soap
> > message and marshalling using JAXB whilst the other half is read only
> > and comes from SAP - in the unmarshall callback event we make a
> > separate call to SAP to retrieve this half of the data and populate
> > the object.
> >
> > cheers
> > dim
> >
> > On 02/11/05, Mark Hansen <mark_at_javector.com> wrote:
> >
> >>I'm trying to understand the intended use of Unmarshal / Marshal
> >>callback events. For unmarshalling, what kind of bean property would I
> >>want to set on a value class either before or after unmarshal?
> >>
> >>I'm even more confused about marshal callback events. The marshal
> >>callback interface doesn't provide access to the XML infoset that is
> >>being marshalled in to - only the parent of the JAXB value class and the
> >>Marshaller. What is the use case for setting properties of either the
> >>Marshaller and/or value class before or after marshalling it out to an
> >>infoset?
> >>
> >>-- Mark
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> >>For additional commands, e-mail: users-help_at_jaxb.dev.java.net
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> > For additional commands, e-mail: users-help_at_jaxb.dev.java.net
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>