When a server is restarted, fails or something in the network path goes down the DataService instance will attempt to automatically reconnect, and when it does get reconected it should be resetting/renegotiating its current set of active fills with the new server automatically.
When connectivity is lost you can allow your users to continue making local edits and just disable the UI component(s) that triggers a commit() until connectivity is restored or you could disable the UI completely and put up a notice stating that the app is attempting to reconnect. I'd like to get more info from you regarding the specific product version you're using, and I'll ping you off-list for that; this could be a known issue that's been fixed or something that should be investigated. One workaround you may want to try in the interim is to invoke disconnect() on your DataService when it gets disconnected, and then manually reissue your fill()s. Best, Seth ________________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Thursday, January 24, 2008 5:35 PM To: [email protected] Subject: [flexcoders] Re: LCDS Paging error and connection management in DataServices. Advice? Thanks. Do you know if the connected property works in amf-polling as well? As an experiment I tried to disconnect my wireless connection while the app was running and the connected property didn't change. However, using RTMP it works fine. Also, is there a way to distinguish a disconnect from when the server is down or has restarted? In those cases, it seems I need to for my users to relaunch the application rather than just try to reconnect to the channel. I would love to see some sample code (if there is any out there) from anyone who has handled all these connection/disconnection issues in DMS. It seems like there is a fair amount to try to keep track of with these type of connections vs a simple asynchronous call. Thanks, Kevin --- In [email protected], "Seth Hodgson" <[EMAIL PROTECTED]> wrote: > > Hi Kevin, > > DataService exposes a bindable 'connected' property that lets you know whether its underlying channel to the server is up or not. If it's not up, DataService will attempt to reconnect indefinitely. You should watch the 'connected' property and let the user know when they've lost connectivity, as well as when connectivity is regained. > > DataService also provides a disconnect() method that can be used to shut down the instance, and will also stop any further automatic reconnect attempts. > > Hope that helps, > Seth > ________________________________________ > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin > Sent: Thursday, January 24, 2008 9:07 AM > To: [email protected] > Subject: [flexcoders] Re: LCDS Paging error and connection management in DataServices. Advice? > > I'll add to this post, how do you check the connected status if you > are using amf-polling?? > > If I turn off my internet connection while working, I get tons of > errors when trying to navigate the app since things are all of a > sudden not loading in via paging... > > I am not sure the best way to handle this. > > - Kevin > > --- In [email protected], "Kevin" <lists@> wrote: > > > > I am trying to handle a situation where my user are getting > > temporarily disconnected from my web app and then proceeding to > > continue enter info thinking that it is being saved simply because it > > is still working in actionscript. (of course nothing is getting > > persisted to the database at this point). This problem seems very > > unique to data management since we are not making explicit calls to > > the database and instead it is being handled by DataServices. > > > > I have tried to set up an Alert warning and a status indicator so that > > they know when then are connected again, however, sometimes I am > > getting the follow error when the web app is reconnected (see below). > > Admittedly this usually happen when there is a server restart > > (although is there a way to check for this?), but I am still wondering > > how best to manage my apps connection since I am not doing explicit > > asynchronous calls to the database? > > > > Thanks for the help. - Kevin > > > > > > > > [RPC Fault faultString="Pages for sequence id 209 have expired in > > destination relationships." faultCode="Server.Processing" > > faultDetail="null"] > > at > > > mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()[C:\depot\flex\branches\enterprise_bridgeman_final_hotfixes\frameworks\mx\data\ConcreteDataService.as:2112] > > at > > > DataListRequestResponder/fault()[C:\depot\flex\branches\enterprise_bridgeman_final_hotfixes\frameworks\mx\data\ConcreteDataService.as:6022] > > at > > > mx.rpc::AsyncRequest/fault()[E:\dev\flex\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103] > > at > > > NetConnectionMessageResponder/statusHandler()[E:\dev\flex\sdk\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:531] > > at > > > mx.messaging::MessageResponder/status()[E:\dev\flex\sdk\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:222] > > >

