|
From: <php...@li...> - 2008-12-21 18:08:31
|
>>then you've written a bug, I think.
Maybe!
But the only code I have is
$session = java_session();
$session->put("param1", someJavaObject);
On the other page I am doing
$someJavaObject = $session->get("param1");
That is all I have. 2 lines of code for the session in php and one line in
the second php.
BTW, $someJavaObject would be temporarily referenced by many threads on the
backend in the subsequent calls. Could that be the source of the problem?
>>It is not possible to keep the state w/o using java_session(), at least
not reliably.
As I mentioned earlier, I have apache http server and tomcat. Instead of
using java_session, I am using the session_id() within the apache server and
against that id I am storing a data structure in the backend.
So, on the first page I am doing
$sessionid=session_id();
$myBackendHodler.storeParam1($sessionid, someJavaObject);
On the second page I am doing
$sessionid=session_id();
$someJavaObject = $myBackendHodler.getParam1($sessionid);
Let me know if you think that is reliable.
>> Please see our FAQ entry "How does the bridge handle OutOfMemoryErrors?"
for details.
I have gone through it but will go over it one more time.
Thanks
-Ajit
----------------------------------------------------------------------------
--
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|