Highlighted

Remoting with Arugments

ooDeveloper99

01-12-2008

This might be a trivial question.



I figured out how to do object remote-ing with blazeds. I can
call a method with out arguments no problem.

The question is how to write flex code to call a method with
arguments. 🙂



Mxmul code..



<mx:RemoteObject id="getApplicationsSrv"
destination="aReportService"

result="this.processResultsFromGetApplicationsSrv(event)"

fault="this.processFaultsFromGetApplicationsSrv(event)"
/>



Flex code..

this.getApplicationsSrv.getOperation("getApplications").send();




I need to invoke a java method that has one argument,
application id. I have not found a good article or documentation on
how to pass arguments.





Thanks in advance.

Replies

Highlighted

ooDeveloper99

01-12-2008

Thanks for the reply.



I figured it out. 🙂 Or found one solution.



I changed the flex code to this..



this.getApplicationsSrv.getApplications();



I did not realize you can just call the method straight from
the flex code.



Here is an example executing a method with
parameters(arguments)



this.getApplicationsSrv.getReleasesForApplication(releaseID);



The getReleasesForApplicaton(int anAppID) is the method
signature from the Java Object.



So simple its hard 🙂



Thanks for the reply.