Hi!

<skip>
> > sounds like an interesting technique. how do you insert the business
> > objects into the cocoon sax pipeline? e.g. from an xsp page, a
generator,
> > a transformer, what?
>
> From an XSP page:
>
>   <page>
>     <xsp:logic>
>       Unmarshaller.unmarshal(this.contentHandler, businessObj);
>     </xsp:logic>
>   </page>

So, you might have some mapping between businessObj and resulting XML? Do
you use something like Exolab's Castor for that or you have implemented your
own technic? Marshalling and unmarshalling requires heavy usage of
reflection API and it's not very effective for the performance.

XMLizable interface can be better in some cases - when the object itself
knows how to represent itself in XML format, but it requires more work with
every object and is more difficult to maintain it - changing a name of an
attribute will require recompilation of the object.

It seems that problems are alsmost the same everywhere, as well as the
solutions... :)

>
> Giacomo

Regards,
    Konstantin Piroumian.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to