Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » MobiLink - 服务器启动的同步 » 服务器启动的同步教程 » 教程:使用网关配置服务器启动的同步

 

第 9 课:配置 MobiLink 监听器

本课假定您已完成前面的所有课程。 请参见第 1 课:建立统一数据库

在本课中,您将配置 MobiLink 监听器,方法是将 MobiLink 监听器选项存储在某个文本文件中,然后通过在命令行指定该文件名来运行 dblsn。

 ♦ 配置 MobiLink 监听器
  1. 新建一个包含以下内容的文本文件:



    #----------------------------------
    # Verbosity level
    -v2
    
    # Show notification messages in console and log
    -m
    
    # Polling interval, in seconds
    -i 3
    
    # Truncate, then write output to dblsn.txt
    -ot dblsn.txt
    
    # MobiLink address and connect parameter for dblsn
    -x "host=localhost"
    
    # Enable device tracking and specify the MobiLink user name. 
    -t+ sis_user1
    
    # Message handlers
    # Synchronize using dbmlsync
    -l "subject=sync;
    action='start dbmlsync.exe 
     -c SERVER=remote1;UID=DBA;PWD=sql
     -o dbmlsyncOut.txt';"
  2. 此教程将 c:\MLsis 假定为服务器端组件的工作目录。在此目录中将文本文件另存为 mydblsn.txt

  3. 启动 MobiLink 监听器。

    在命令提示符处,浏览到 MobiLink 监听器命令文件的目录。

    通过输入以下命令启动 MobiLink 监听器:

    dblsn @mydblsn.txt

    随即出现 [Windows 版 MobiLink 监听器] 窗口,指示 MobiLink 监听器正处于休眠状态。

    将跟踪信息上载到统一数据库时,将在 MobiLink 服务器消息窗口中出现一个新条目。此信息将转发 MobiLink 监听器与 MobiLink 服务器之间成功进行的初始通信。

  4. 前进至第 10 课:发出推式请求

 另请参见