Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
将 UltraLite 数据库同步服务器设置为与 M-Business Anywhere Server 具有相同的配置。
public void setMBAServer(String host, String port, String url_suffix)
host M-Business Anywhere Server 主机。设置为空值可允许 ULPod 进行自动配置。
port M-Business Anywhere Server 端口。设置为空值可允许 ULPod 进行自动配置。
url_suffix M-Business Anywhere Server ProxyPass url_suffix 或 MobiLink 重定向器 url_suffix。
通过 M-Business Server 发送到 MobiLink 服务器的数据流量。
如果 "host" 和 "port" 值为空值,则 ULPod 会自动将其设置为当前 M-Business 服务器的主机和端口。
"url_suffix" 与 M-Business Server 的 sync.conf 文件中设置的 "url_suffix" 相同。以下 sync.conf 部分将 M-Business Server 配置为使用 "url_suffix" 将 HTTP 数据库通信路由到运行在 host:port 上的 MobiLink 服务器。
<IfModule mod_proxy.c> ProxyRequests On ProxyPass "url_suffix" "http://host:port" </IfModule>
例如,ProxyPass 后面可以接 /iaredirect/ml http://localhost:8080/ From ULPod 客户端,用户可以调用 SyncParms.setMBAServer(null, null, "/iaredirect/ml")