开发者

Push from Server to Blackberry Playbook

Is possible to make a "push", initiated by a server, to sen开发者_开发技巧d data down to a Blackberry playbook application?

If so how is this best implemented in Flex/Actionscript? ie. How do we capture this on the client?


You'll need to use a server that has push technology like BlazeDS, GraniteDS, LCDS, Wowza Server, FMS, etc. Although BlazeDs and GraniteDS isn't 'true' push (it's long polling), it should be more than adequate for 99% of all projects, plus it's completely free to use.

On the Flex end, you only need to setup the consumer to point to the AMF channel (your server) for it to work:

<s:Consumer destination="MessagingDestination" message="onMessage(event)">
    <s:channelSet>
        <s:AMFChannel url="YourServerURL" />
    </s:channelSet>
</s:Consumer>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜