You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Luca Zago <lz...@e-tree.com> on 2003/02/24 14:26:59 UTC

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: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Alternate request/response mechanisms for Cocoon (was Re: Cocoon as a DataMapper framework)

Posted by Ryan Hoegg <rh...@isisnetworks.net>.
Luca,

I have also been considering such an idea.  I have not spent the time to 
look into Cocoon's architecture in enough detail yet, but it seems I 
would just need to set up my own class that performs all the duties that 
the Cocoon servlet performs.  

I recently had the opportunity to meet with some other members of this 
list, and we tossed the idea around.  Someone mentioned that there is 
currently work in progress to abstract the request/response model 
because of the command line interface.  It would seem that if one wanted 
to use Cocoon as a data pipeline for a different type of application 
than command line or HTTP, one would want to sync up with the people 
doing this.

My particular idea was to repurpose Cocoon's pipeline architecture as an 
EAI front end.  That is, it would be responsible for communications 
between organizations and applications.  I have recently been looking 
around to see if there is any other appropriately licensed software that 
is more suited to this particular use case, but so far haven't found 
any.  However, I have found the werkflow project to be interesting if 
considered in conjunction with Cocoon.

Anyone else been thinking along these lines?

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

Luca Zago wrote:

> 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?




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


Re: Cocoon as a DataMapper framework

Posted by Luca Zago <lz...@e-tree.com>.
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:lzago@e-tree.com]
> Envoye : lundi 24 fevrier 2003 14:27
> A : cocoon-users@xml.apache.org
> 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: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


RE: Cocoon as a DataMapper framework

Posted by Laurent Comte <la...@oodrive.fr>.
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:lzago@e-tree.com]
Envoye : lundi 24 fevrier 2003 14:27
A : cocoon-users@xml.apache.org
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: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org




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