Hi,
I'm confused with a java session variable behaviour. It is an instance of java class created on the following manner:
$session=java_session();
$rep=new Java("depths.moodle.RepositoryFactory");
$session->put("rep",$rep);
When I restart Tomcat and try to identify if this variable exists:
$rep=$session->get("rep");
if (is_null(java_values($rep))){
if condition is not true, that is, rep variable is not null. However, this value is not an java object that is created before, so I can't use it. In my application, I want to use this variable if it exists or to create a new instance if it does not exists, but I can't check it in this way.
Can you explain me what is the problem with this approach, please?
Zoran
|