Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Remoting with Arugments

Avatar

Former Community Member
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

Avatar

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

Avatar

Former Community Member
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.