In the application I am  writing, I have created a custom generator 
that understands JaxB based objects, thus providing the 
marshalling/unmarshalling mechanism for XML.  In my circumstance, each 
transport object is a JAXB component used against both presentation 
transformation and communication between the action and the REST-based 
service.

On Wednesday, September 18, 2002, at 03:21 PM, Yatin Shah wrote:

> This is nice summary for new users like myself. Thanks.
>
> Should the generator be custom coded or are there any
> cocoon pre-built generators which would create XML
> from request attributes & transport objects?
>
> I'm thinking of the case where transport object is an object
> representation of a hierchical database data.
> Are there any open source products which can be used
> here to do the transformation from object/relational to XML?
>
> Thanks
> -Yatin
>
> Bryan Zarnett wrote:
>
>> Thanks for everyone's input on the XML Generation. Taking some of 
>> those comments and going through the documentation, I came down with 
>> the following simple (and hopefully close to correct) conclusions. 
>> The idea here is that Cocoon would be used in a web application with 
>> Cocoon responsible for presentation and user navigation and a web 
>> service using REST responsible for business rules.
>>
>> * The user sends down an Action Name which defines the operational 
>> request the user wishes to invoke. This action name is used in the 
>> site map to determine the appropriate action to apply.
>>
>> * The action acts as a controller, processing user input and invoking 
>> one or more distributed business services (REST, EJB, etc.) that 
>> return back one or more transport objects. The action aggregates the 
>> transport objects and places them into request attributes.
>>
>> * The generator takes the request objects and converts them to XML, 
>> passing the information onto a transformer.
>>
>> Any thoughts or comments would be appreciated.
>>
>>
>> ---------------------------------------------------------------------
>> Please check that your question  has not already been answered in the
>> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>>
>> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
>> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>
> -- 
> Yatin Shah, President                       mailto:[EMAIL PROTECTED]
> Kripa Inc.                                  http://www.kripa.com
> Dayton, New Jersey USA                      phone:  732.329.8303
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Developers of real time event driven distributed DB applications
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to