File as temporary data storage
If my application can not establish connection with the server it is storing 8000 records in files.After connection with the server resumes it sends those records to server one by one and simultaneously deletes those records from the file.
So if i use ObjectSerialization then I will not be able to delete a record from the file. Should I go with XML(can I delete a record from a xml?) or is there any other suggestion?
With regards, Ajse
Nothing complicated works...
Serailzation you say..., then I assume that you are handling these files
of records as serializable objects (I think I have answered this before). I
also assume that you are in control of the code on the server side and that
it is vitally important that you don't delete a local record that hasn't been
transferred properly and that you cannot update a record that is
scheduled for transfer.
(there may well be obstacles in your scenario that prohibits this method)
Don't delete while transferring, let the server respond to the transfer with a
list of references for all the transferred records after the load has completed.
This response could be a short one if all was transferred and loaded ok.
Then do the local deletion.
By teja8100 in forum VB Classic
Last Post: 07-08-2005, 07:03 PM
By Chicho in forum VB Classic
Last Post: 10-01-2003, 01:00 AM
By Michael Liang in forum Enterprise
Last Post: 06-21-2002, 10:48 AM
By niranjan in forum VB Classic
Last Post: 03-14-2000, 01:27 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL