Expand my Community achievements bar.

synching data from the server to the client

Avatar

Level 1
I have a collection in the client which is bound to a
dataservice. I understand that when i load up my flex app that the
flash player makes a call to the dataservice and retrieves a List
collection. That is working fine. Also, when i update the
collection on the client the synch method is called on the data
service. That too is working fine.



My question is how do i set up the data service so that is
knows when to request data from the server again. How does the
client know when data on the server has changed? Are there examples
of this behaviour?
5 Replies

Avatar

Level 1
The "fill/sync" mecanism provided by data management services
is a sort of RPC implementation that streamlines client-to-server
data retrieval and update. Its purpose is not real-time data
syncing between your client and server.



If you want the server to keep client-data up-to-date, you
will need to use messaging services provided by flex and/or JMS, so
the server can push a message to the clients each time a bunch of
data is updated. In this scenario, the server will be message
provider, and your client a consumer. take a look at the Flex
Messaging Service documentation.



Hope this helps.

Avatar

Former Community Member
See documentation of FDS class
flex.data.DataServiceTransaction.



--

J�rgen Failenschmid





Avatar

Level 1

quote:




Originally posted by:
Newsgroup User


See documentation of FDS class
flex.data.DataServiceTransaction.



--

J�rgen Failenschmid











Great ! I missed this one. Thanks.