How do you implement push with flex data services?
Answer / Samir Kumar Singh
To implement push with Flex Data Services, you can use LiveCycle Data Services ES (Enterprise Service). It allows real-time data synchronization between client and server. You would need to create a remote object that extends mx.messaging.events.MessageConsumer and override the handleServer event. Then subscribe to the appropriate message in the server side using an IObserver.nnHere's a simple example:nn```actionscriptnimport mx.messaging.events.MessageEvent; nimport mx.messaging.messages.Message; nnvar consumer:Object = new Object(); nconsumer.subscribe("push.message", onPushMessage); nconsumer.client.connect("serverURL");nnfunction onPushMessage(event:MessageEvent):void {n // Handle the push message heren}n```
| Is This Answer Correct ? | 0 Yes | 0 No |
What is mvc and how do you relate it to flex apps?
Why do strongly typed objects appear as "undefined" in the netconnection debugger? : adobe flex action script
Is double-clicking supported on various components?
What are the advantages and disadvantages of using flex? And why flex wins over other technologies?
What is default frame rate of the timeline in frame per second?
Does exclude or exclude class really excludes the data or class?
What is a view cursor?
Can I resize the internet explorer browser window from flex? : adobe flex action script
In which level does the original movie resides?
How do we use css styles in flex?
What are the methods called when a ui component is intialized? : adobe flex action script
What is the function of trace?