I want to create a project in which I want to synchronize a local database with a remote database. Changes made to the local database must be reflected in the remote database. This must be done synchronously. I have an application that performs CRUD operations in a local database, written in java / jpa. Synchronization should start from java code. I was thinking of triggers in every database table that will support changes to the local database. But I doubt whether it is safe or not. After googling, I found out that the oracle lite database is best suited for synchronizing two databases, but I need to get started quickly. The operating system I use is Windows Xp. The database size is about 2 GB.
I created a thread to achieve the same in java, but from Suggestetion I restarted the same thread in the database context.
Xinus source
share