cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: Best way to initialize Context, Session and Request attributes
Date Fri, 08 Apr 2005 11:32:41 GMT
lists@kuhnle.net 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?

Can't you just say:

<map:pipeline>
   <map:action type="myaction"/>
   <map:match pattern="...

That way, your action is always called, on every request. Pretty sure 
that would work.

Regards, Upayavira

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


Mime
View raw message