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 state? What is the difference between states and viewstack in flex?
What is the use of arraycollection filter function?
Why is disable auto update method used?
What is preventdefault() method?
What is the difference between Flex 2.0 & 3.0?
Do I need to upgrade my flash player to use beta 3?
What is polymorphism in term of oop (flash actionscript)?
What is the dynamic keyword used for in flex actionscript?
What is a view cursor?
Explain how many levels does flash mx support?
I am going to add images into a tag. How will it resize itself in adobe flex actionscript?
Explain about result handler and fault handler methods?