flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Amsellem <maurice.amsel...@systar.com>
Subject RE: Require to understand .. Rpc calls via amf
Date Thu, 27 Mar 2014 07:56:22 GMT
You can also have a look at the source code of eg. BlazeDS.

What makes the rpc call hit java:  I think this is explained in the docs mentioned above,

I will explain for BlazeDS: 

Basically, there is a servlet running in your web app (the java "back-end") called " MessageBrokerServlet"
in the web.xml file.

The servlet url path is by default  :   .../YourApp/messagebroker/...

So basically, Flex sends a POST message with the call parameters (destination id, method name
and parameters) , which will be processed by the servlet.

The servlet analyses the content of the POST, and based on its own configuration (destination,
endPoints, etc..) will call the appropriate java method.

The servlet then writes the result of the call in the ServletRequest output stream.

So this is only standard JEE mechanisms.

Is this the explanation you wanted?


-----Message d'origine-----
De : Maurice Amsellem [mailto:maurice.amsellem@systar.com] 
Envoyé : jeudi 27 mars 2014 08:47
À : users@flex.apache.org
Objet : RE: Require to understand .. Rpc calls via amf

You can  read the BlazeDS (which is one of the AMF to Java implementations) developer guide:

Regarding the uniqueness and non-collision, it's based on two things:
- AsyncToken:  this is an object that is generated when the message is send, and used to track
back the result.
The asyncToken has a unique identifier (in its message field) that will be the same upon return.
- AsyncResponder:  this is a wrapper that calls a method (result or error) when the RPC call
result arrives.



-----Message d'origine-----
De : miteshdv@yahoo.co.in [mailto:miteshdv@yahoo.co.in] Envoyé : jeudi 27 mars 2014 07:04
À : users@flex.apache.org Objet : Require to understand .. Rpc calls via amf

Hi guys,
Can anyone explain me ... How to remote calls to java happen ... I have read many docs ...
But they mostly explain .. Actors involved in it like message broker.. Amf channel ... Services
config ..etc etc..i need to have understanding what makes the rpc call to hit java method
.... Also IMPORTANTLY how results reach to correct flex  method (i know evnt listeners are
attached to remote object .. But when does the result evnt occur) ..without overlapping with
other result methods

Sent from Yahoo Mail on Android

View raw message