I have never tried this, actually I have just created a new VM to try this out as working on similar project, however what I have in mind as a process which has not been tested:
- Check for connectivity, so when it is offline then data is saved to the local DB.
- When there is internet connectivity, then the data that was saved locally shall be sent to the jRDC2 (the middleware) in order to be saved on the DB server (the VM DB server).
- Remove the data from local DB.
For the VM part:
- If you are using a linux VM, then you can install any DB like sqlite, mysql,.. etc
https://www.digitalocean.com/commun...son-of-relational-database-management-systems
- Refer to point number 3 in the jRDC2, you will find that the SQL commands exist in this file, in which it will be passed to the SQL DB that you have created on the VM.
So seems all the SQL statements exist in this file to either create a table or if you already have a table then jRDC2 will pass SQL statements to be sent to the DB behind it.
Experts or anyone has tried this can definitely correct this process if I am mistaken at any point!