[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: berkeleyDB tie once and forever with mod_perl
From:       "Perrin Harkins" <perrin () elem ! com>
Date:       2007-07-19 21:01:58
Message-ID: 66887a3d0707191401p3f504873h9861bbdbb1bb850 () mail ! gmail ! com
[Download RAW message or body]

On 7/19/07, Nils Kaiser <NilsKaiser@gmx.net> wrote:
> I was able to change our code to have the handlers called by the Apache
> server (PerlResponseHandler, PerlChildInitHandler,
> PerlChildExitHandler). What I don't understand, is in which scope/object
> I store the reference to the BerkeleyDB in the init handler? And of
> course, how I access this scope/object in the ResponseHandler?

Put it in a global variable and access it from there.  If you prefer,
you can wrap that access in a method call.

- Perrin
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic