SyncML是一个流行的应用层同步协议。除了包括像J2ME这样的通用客户应用平台,移动设备通常还预装一些智能应用程序。例如在智能电话或PDA上包括有日历,地址本和联系表(个人信息管理 personal information management, 或PIM应用程序)这些应用程序通常能够通过设备软件供应商所提供的协议与桌面PC或其他中央数据储存库进行数据同步。协议间的不兼容造成用户的许多问题。例如,在Pocket PC上的Mac 和Linux两平台进行同步是非常困难的;如果一个人拥有多个移动设备,那他必须安装多个驱动程序,而这些驱动程序是存在潜在冲突的。用户需要一个标准的同步协议,它允许任何设备在不需要专门驱动程序条件下与任何后端应用程序进行同步。 SyncML是一个标准的XML数据格式,它定义语法描述简单PIM数据例如vCard和vCalendar。SyncML能访问数据库驱动的企业后端信息系统。例如,IBM WebSphere Everyplace Access提供SyncML客户端访问Lotus Notes和Microsoft Exchange servers。像IBM DB2和Oracle9i Database这样重要的企业数据库已经建立了对SyncML的支持。由于SyncML只是在PIM类型应用程序上发挥作用,它还没有强大到足以和通用关系数据库同步的地步,因此本文没有集中在SyncML上。
Resources
・ Download the source code for this article's PointBase ContactManager sample application (you need to download PointBase Micro database and UniSync to run the sample): http://www.javaworld.com/javaworld/jw-06-2003/wireless/jw-0606-wireless.zip ・ For more detailed discussion and complete source code analysis, preview Michael Yuan's upcoming book, Java Mobile Enterprise Application Development: http://www.enterprisej2me.com/books.php ・ The JDBC specification: http://java.sun.com/products/jdbc/ ・ The JDBC optional package: http://java.sun.com/products/jdbc/download.html/#cdcfp ・ The supported JDBC API in PersonalJava: http://java.sun.com/products/personaljava/ ・ HSQL Database Engine (check out the Sharp Zaurus page): http://hsqldb.sourceforge.net/ ・ Sybase iAnywhere Solution's SQL Anywhere Studio (including Adaptive Server Anywhere and UltraLite deployment option): http://www.sybase.com/products/mobilewireless/anywhere ・ IBM DB2 Everyplace: http://www-3.ibm.com/software/data/db2/everyplace/ ・ Oracle9i Lite database: http://otn.oracle.com/products/lite/content.html ・ PointBase Micro database and UniSync server: http://www.pointbase.com/home.shtml ・ For more articles on J2ME and wireless development, browse the Micro Java section of JavaWorld's Topical Index: http://www.javaworld.com/channel_content/jw-micro-index.shtml ・ More Wireless Java articles: http://www.javaworld.com/columns/jw-wireless-index.shtml ・ Browse the Java Database Connectivity (JDBC) section of JavaWorld's Topical Index: http://www.javaworld.com/channel_content/jw-jdbc-index.shtml ・ Michael Yuan also authored the following JavaWorld articles: o "Build Database-Powered Mobile Applications on the Java Platform" (January 2002) o "Track Wireless Sessions with J2ME/MIDP" (April 2002) o "Java Tip 126: Prepare Cross-Server Database Access Methods with JDBC" (April 2002) ・ Browse the Development Tools section of JavaWorld's Topical Index: http://www.javaworld.com/channel_content/jw-tools-index.shtml ・ Browse JavaWorld's Product Reviews index page: http://www.javaworld.com/news-reviews/jw-nr-product-reviews.shtml ・ Sign up for JavaWorld's free weekly Micro Java email newsletter: http://www.javaworld.com/subscribe