What is Channel
Channels are Client side objects that encapsulate the connection behaviour between flex components and blazeds server.
What Channel will do
- Channel formats and translates the message into a network specific form.
- Channel communicates with corresponding end points on the BlazeDS server.
- Channels impose an order to the flow of messages sent to the server and the order of corresponding responses to ensure that the interaction between the client and server occurs in a consistent and predictable fashion.
Where to configure channel
We define channels and endpoints in services-config.xml file
How to configure channel
<channels>
...
<channel-definition id="my-amf"
type="mx.messaging.channels.AMFChannel">
<endpoint url="http://servername:port/myapp/messagebroker/amf"
type="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
</channels>
share on: facebook


0 comments:
Post a Comment