Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Remoting with Arugments

ooDeveloper99
Level 1
Level 1
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.

2 Replies
Michael_Borbor
Level 3
Level 3
Check this link it'll answer all the questions about passing
arguments in a remote object invocation


http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_5.html
ooDeveloper99
Level 1
Level 1
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.