I've been using Cocoon 1 and 2 with EJBs for last
2.5 year for enterprise size application. One advantage
I had was that I decided to use cocoon from the beginning.
so my EJBs can present themselves as XML which makes for
easy insertion into the XML stream.
The biggest problem I had was handling of errors that
EJB methods can throw and are handeled by
redirecting to another page. The way I handle this
is that I have an action that processes the XSP
and store it in a request attribute. The XSP contains
tags that access my EJBs and define error handlers.
Once XSP is processed without errors I call a simple
generator that reads the resulting XML from the 
attribute. 
I only use transormes for xincludes, i18n, and
changing data centric XML representation to GUI
centric representation for complex data models.

This might not be the best way of doing things
but it works for me.

Artur...



> -----Original Message-----
> From: Bruno Collet [mailto:b_collet@;yahoo.com] 
> Sent: October 25, 2002 6:07 AM
> To: [EMAIL PROTECTED]
> Subject: Cocoon and EJB
> 
> 
> Hi
> I'm investigating the possibility to use Cocoon 2 for
> a big corporate app.
> I have a doubt whether it is possible (and easy :) to
> fetch data from EJB (connected to a DB) and produce
> HTML pages from both XML/XSL documents and these data.
> 
> Does it fit into the Cocoon pipeline architecture
> concept?
> Would it imply writing my own transformers/generators?
> Thx!
> Bruno
> 
> __________________________________________________
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
> http://webhosting.yahoo.com/
> 
> ---------------------------------------------------------------------
> 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