StrataFrame Forum

Offline Capabilities

http://forum.strataframe.net/Topic12003.aspx

By Alagarsamy Rajamannar - 10/15/2007

I was wondering , how SF provides or can provide Offline capabilities.

I looked into these issues in the forum. Any clues?

By Trent L. Taylor - 10/15/2007

There are a number of ways to approach this. 

Option 1
First, you can serialize the BO to disk and then deserialize it when you want to use it again.  In this scenario you will not actually execute the "Save" until you get back to a location where the data source can be reached.

Option 2
Use a local database and then sync when the primary database is accessible.  For example, you could use SQL Express (server based) or SQL Anywhere (embedded no server) on the client machine while it is "disconnected" from the primary data source.  Once the primary database is then accessible again, you could then synchronize it with the clients information.  This is something that would be a function of your application, not the framework.

Option 3
If your client machine will always have an internet connection, you could use Web Services or our Enterprise Server to always talk real-time to the primary database itself.

By Keith Chisarik - 10/15/2007

I have used XML files with good success to do this type of thing, .NET loves XML so it is easy to work with.



Just another idea.
By Trent L. Taylor - 10/15/2007

Good point, Keith.  StrataFrame comes with a sample that shows how to read/write to an XML file through a business object. Smile