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
BedrockMission!

Learn More

View all

Sign in to view all badges

Remoting with Arugments

Avatar

Avatar
Level 1
ooDeveloper99
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
ooDeveloper99
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
ooDeveloper99
Level 1

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

Avatar

Avatar
Boost 1
Level 2
Michael_Borbor
Level 2

Likes

2 likes

Total Posts

93 posts

Correct Reply

3 solutions
Top badges earned
Boost 1
Affirm 3
Affirm 1
View profile

Avatar
Boost 1
Level 2
Michael_Borbor
Level 2

Likes

2 likes

Total Posts

93 posts

Correct Reply

3 solutions
Top badges earned
Boost 1
Affirm 3
Affirm 1
View profile
Michael_Borbor
Level 2

01-12-2008

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

Avatar
Level 1
ooDeveloper99
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
ooDeveloper99
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
ooDeveloper99
Level 1

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.