摘要
提出一种基于发布-订阅模式的Push和Pull异构数据同步系统。该系统基于Java和XML这两种与平台无关的技术,采用了数据库触发器对数据库的变化进行捕捉,使用控制变化表来保存数据变化,并利用XML文件作为中介存储来交换变化数据,进而达到数据同步的目的。依据系统的设计,以关系型数据库SQL Server和MySQL为实例,应用Java语言进行了具体代码的实现。
Proposes a Push and Pull heterogeneous data synchronization system based on Publisher- Subscriber mode, the system is based on Java and XML technologies, both of which have nothing to do with the platform, in the system, database trigger is used for database capture, XML documents is used as an intermediary to store and exchange the data changes thus achieving the purpose of data synchronization. Based on the design of the system takes, relational database SQL Server and MySQL as an example to illustrate that the achievement of specific codes by means of Java.
出处
《现代计算机》
2008年第10期157-162,共6页
Modern Computer