[EMAIL PROTECTED] wrote:
Hi,

in my webapp I need to initialize the Context, Session and Request attributes, e.g. with database connections, message queues etc. What is the best way to do this in Cocoon? Right now I'm using actions, but this is not satisfactory, as I have to put the action in many places in my sitemaps. Is there a better way to do this, e.g. some kind of hook that is called when Contexts, Sessions and Requests are created and disposed?

There are listeners classes available that do just this.

http://java.sun.com/products/servlet/2.3/javadoc/


HTH Jorg


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



Reply via email to