Cocoon doesn't provide any "automatic" integration with EJBs. There are
a couple of approaches:
1. Use flow (Flowscript or Javaflow). You call your EJBs from the flow
and then pass the objects through the pipeline.
2. The old way - use actions.
3. Do something else. This is the approach we are currently using. We
wrote a generic "BusinessDelegate" component that is configured in
cocoon.xconf. A new instance of the BusinessDelegate is configured for
each method that can be called. It returns a DataTransferObject as a
request attribute. We then have a "BeanGenerator" that uses Betwixt to
convert the DTO into SAX events.
We will probably convert to using flow (or possibly the faces block) to
access our EJBs in the future as performing decisions based upon data in
the DTO makes the sitemap cumbersome.
Ralph
Peeths wrote:
hi,
i'm bulding up an application in cocoon , and i want
to integrate ejb with cocoon , how can i do that , any
configuration file that we have to do , or can we
integrate in the sitemap itself
regards
Peeths
_______________________________________________________
Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for
FREE! http://in.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]