How do you implement push with flex data services?



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

Post New Answer

More Adobe Flex Interview Questions

What is state? What is the difference between states and viewstack in flex?

1 Answers  


What is the use of arraycollection filter function?

1 Answers  


Why is disable auto update method used?

1 Answers  


What is preventdefault() method?

1 Answers  


What is the difference between Flex 2.0 & 3.0?

1 Answers  


Do I need to upgrade my flash player to use beta 3?

1 Answers  


What is polymorphism in term of oop (flash actionscript)?

1 Answers  


What is the dynamic keyword used for in flex actionscript?

1 Answers  


What is a view cursor?

1 Answers  


Explain how many levels does flash mx support?

1 Answers  


I am going to add images into a tag. How will it resize itself in adobe flex actionscript?

1 Answers  


Explain about result handler and fault handler methods?

1 Answers  


Categories