Hi Laurent,
yes sure, this is for sure a workaround. Bu my doubts are more about the
architecture of cocoon. For example how to implement a service that take
an xml from a source and write it on dB without sending the request by
an HTTP Connection? Is it possible to make an XML persistence (like a
serializer could be) to a relational DB?
Cocoon could have all the methods to do it, through a configurable
pipeline for example, I was wondering if it could be possible to do it
by an API outside the webapp framework?
Regards,
Luca
Laurent Comte wrote:
Hi Luca,
I'm writing a web-application (servlets + POJO) that use Cocoon for
presentation, so my application is Controller+Model, and Cocoon is
View (plus Controller if I need), MVC model speaking.
My application generate data (response) in XML, and then I forward
the original request using /view alias, pointing to the main
Cocoon servlet. AFAK, i's a servlet, so you can call it like another
one ...
Regards.
Laurent
-Message d'origine-
De : Luca Zago [mailto:[EMAIL PROTECTED]
Envoye : lundi 24 fevrier 2003 14:27
A : [EMAIL PROTECTED]
Objet : Cocoon as a DataMapper framework
Hi,
I was thinking about a data mapper framework, a framework which can take
data from a source and write to another destination. An application
scenario could be taking an xml somewhere (XML DB, HTML forms) and then
writing it to a traget XML or even Relational DB.
Then I was thinking why not to use cocoon to do it.
I had some doubts, the nice thing could be that I write mainly the xml
files for transformation and the pipelines, and then the framework works
for me, my doubts are that coccon is too 'content delivery oriented' to
apply such features. is cocoon in your opinion enough flexible to use it
in such a scenario with not a great load of coding?
Has somebody experienced such an application scenario for coccoon?
One limitation immediately came to my mind is that cocoon works with a
request from client, is it possible to call a pipeline programmatically?
Thank you very much n advance for suggestions and opinions.
Luca
--
Luca Zago
Senior IT Developer
_
E-TREE S.p.a. Via Fonderia 43 - 31100 Treviso (Italy)
phone +39.0422.3107
fax +39.0422.310888
http://www.e-tree.com http://www.webanana.com
_
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]