Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling java bean from flash remoting

Status
Not open for further replies.

womblies

Programmer
Feb 28, 2003
62
IE
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top