> From: sylviat [mailto:[EMAIL PROTECTED]]
> 
> Hello -
> 
> I am writing a database application where I want to
> restrict update access to a particular table to one
> user at a time.  What I want to do is implement some
> sort of 'lock' that would be, in java servlets terms,
> saved on the ServletContext level.  I am thinking that
> I will write an action which checks and sets this
> 'lock' (probably just a boolean variable) to control
> the pipeline which delivers the page containing update
> capabilities.
> 
> Here's the question: where/how in cocoon do I save a
> 'global setting', ie equivalent level to java
> ServletContext? 

    public Map act(Redirector redirector, SourceResolver resolver,
                   Map objectModel, String source, Parameters
parameters)
    throws Exception { 
        Context context =
            ObjectModelHelper.getContext(objectModel);



Vadim



> And/or is there a better way to
> achieve mutual exclusion on the delivery of a
> particular page than what I've described?
> 
> I'd be glad to read documentation on this subject if
> someone could please point it out to me.  All of your
> suggestions are appreciated.  Thanks.
> 
> Sylvia
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.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