I am looking for best-practices for providing bi-directional sql replication under the codenameone framework.
The applications will install with a bare database and connect to a REST server to pull down current data templates (xml files stored in sql varchar). the mobile application will create local database tables from the templates, and create dynamic forms from the template as well. This allows the mobile application to run completely disconnected from the net.
When a connection is available, any new or modified records will be posted to the REST server to update the central master database for that user. At the same time, any new or modified records will be downloaded.
I know I will need to provide my own replication services as SQLite does not provide them, especially in mobile versions.
Is there already a framework in codenameone for this behavior or are there examples which would simplify building the framework?