I have a Web Application for restaurant which is implemented using Struts2.0 and MYSQL as DB.
Now in case of Internet issue or other issues ,in cases where we can't access our Web Application, I want to write a offline (desktop) version for the web application to carry out POS related tasks and update the local DB. Once the connectivity restored the DB will be synced with online DB.
Can someone suggest me the design on how to achieve this.
1. How to have DB sync ? Should it be Local to --> Online DB sync or should it be two-way sync?
2. Is there any configuration I can do at DB level. Or should I write a
Java program (typically a job) that keep both the DBs in sync.
Regards,
Bala.