i have a problem with the way i call the java bean from flash, i'm calling a set method to send a variable to the java been which works fine but when i call a get method it return a null, i think this has some thing to do with the scope of the page(its closes the java bean after each call thus losing the data)here is the sample of the code
if (inited == null){
inited = true;
NetServices.setDefaultGatewayUrl(localhost);
gwConn = NetServices.createGatewayConnection();
Process = gwConn.getService(javaProgramBean,this);
}
Process.seteUSSN("vars"
;
Process.geteUSSN();
when i call process.seteUSSN("vars"
it will set the varible(i have diagnostics on my server which tells me that this works), but when i call process.getUSSN it returns a null(it should return "vars"
.
is there any way that i can have the javaBean to open once and i can call several comands from it.
if (inited == null){
inited = true;
NetServices.setDefaultGatewayUrl(localhost);
gwConn = NetServices.createGatewayConnection();
Process = gwConn.getService(javaProgramBean,this);
}
Process.seteUSSN("vars"
Process.geteUSSN();
when i call process.seteUSSN("vars"
is there any way that i can have the javaBean to open once and i can call several comands from it.