cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Messing, Elad" <elad.mess...@eml-d.villa-bosch.de>
Subject AW: Best Practice - XML RPC results into the DB
Date Tue, 18 Oct 2005 07:30:55 GMT
Thanks Bertrand  !
	Do you think going through beans -> hibernate -> DB is better than just building SQL's
from the XML ? Maybe Hibernate is an Overkill here ?
	Does cocoon has some means to easily build SQL from XML source? Maybe the SQLTransformer
? I am not sure..

	Thanks again
Elad

-----Ursprüngliche Nachricht-----
Von: Bertrand Delacretaz [mailto:bdelacretaz@apache.org] 
Gesendet: Montag, 17. Oktober 2005 13:56
An: users@cocoon.apache.org
Betreff: Re: Best Practice - XML RPC results into the DB

Le 17 oct. 05, à 13:39, Messing, Elad a écrit :
> ...	Will it be a good practice to use Cocoon services to parse this
> XML, build Hibernate objects, and save them to the DB ?..

If your app's environment is Cocoon it makes sense, there are several options to do this:

-Cocoon Forms bindings. This is interesting if you're importing objects that you're already
using in forms, as you'd have the declarations already.

  - An interesting pattern to convert external XML to java objects is shown by Ovidiu Predescu
at http://www.webweavertech.com/ovidiu/weblog/archives/000255.html#000255,
declaring your java components as XSLT extensions to be able to call methods on them.

-Or, use more sophisticated XML-to-java mappings like Castor or XMLBeans, depending on the
complexity of your input data.

-Bertrand



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message