From: <php...@li...> - 2006-11-22 09:22:08
|
Hi. Thanks for the answer. It looks like it's working now. To set the instance (only once): java_get_session()->put("DbEnv", $dbenv); To read it from every PHP request: $dbenv = java_get_session()->get("DbEnv"); Thanks, Ovidiu Dan On 11/21/06, Smarty <zm...@gm...> wrote: > Hi. > > I'm trying to implement the following: Berkeley DB <-> JNI <-> Java > <-> php-java-bridge <-> PHP. > > I would like to have only _one_ persistent Berkeley DB "Environment" > (a class instance) available to every PHP request (so this is not > something session-specific). The idea would be to somehow create an > instance of an object when the Java VM starts up, and then access it > from all PHP requests. > > I need to have this common instance for caching, resource utilization > and concurrency purposes. > > Is there any way to do this with php java bridge? > > Thank you for your time, > Ovidiu Dan, > Amsterdam > |