How to contact Sam Bury??

From: Date: Thu, 04 Jan 2001 22:20:24 +0000
Subject: How to contact Sam Bury??
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-3249@lists.php.net to get a copy of this message
Dear webmaster. I have been trying to get in contact with Sam Bury. His contributions to PHP mean that I really could use his help to ask some questions. Could you please pass this email on. Thanks Brett To: Sam Bury Re PHP and Java - Keeping stateful objects between loads Hi Sam I am looking for a bit of help with a trick problem between Java and PHP. I have been using it with a degree of success and I am really enjoying the interface. I hope this does not bother you too much. I developed a Java access to a database using JDBC. Then I wanted to keep the connection open for the duration of the session to allow fastest access. It seems that the object is Garbage Collected after it has run once. There is a reference to it in the SESSION global variable but second call to the object has lost information. To be the most useful it would be good to store State information in Java, and then to be able to keep the Java Objects in Global Variables (session) so that the entire session has access to the Java objects that are initialized. I suspect that a JVM is initialized for each call to PHP so that any references to Java are only available while the PHP is running. Storage of the reference to the object is useless, because once the JVM has exited the object refences nothing. The only way I could think around this is to output the object to a stream, but the overhead of reading it in with each PHP page read seems a bit high. Is there a way of keeping stateful information in java objects? Thanks in advance for any help that you may be able to offer. Regards Brett Dutton ---------------------+---------------------------------- Brett Dutton | www.radntech.com bdutton@radntech.com | "We build it..... They will come" ---------------------+----------------------------------

« previous php.mirrors (#3249) next »