How does the above guarantee that the action is only run once? Subsequent requests to blah/whatever from different users will run the action again IMO, unless there is something in the action that knows it has been run once.
One thing I can think of that you could do is to wrap your sitemap mount with an action.
The mounting sitemap:
<map:match pattern="blah/**"> <map:act type="initscript"> <map:mount src="sitemap" uri-prefix="blah" /> </map:act> </map:match>
The initscript would execute the script only once.
Hope that helps, Unico
Jean-Luc Mathieu wrote:
Hello !
I have to launch an init script (a Java piece of program) at Cocoon startup
(more precisely on the time the first user to connect requests a specific
sub-sitemap). Is it a simple way to do this using for example sitemaps only, or
I have to override CocoonServlet ?
Thank you in advance.
Jean-Luc
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
