0

我正在尝试使用 SymmetricDS 实现数据库同步。到目前为止,我能够使用独立的客户端和服务器同步数据库。

现在我想从 java 代码运行 SymmetricDS:

SymmetricWebServer node = new SymmetricWebServer("symmmetric.properties");
node.setWebAppDir(webAppDir);
node.start(9090);

但是程序卡住了:

INFO [19:21:58,768] SymmetricWebServer - About to start SymmetricDS web server on port 9090
INFO [19:21:58,816] Server - jetty-7.6.14.v20131031
INFO [19:21:58,973] StandardDescriptorProcessor - NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
INFO [19:21:58,996] ContextHandler - started o.e.j.w.WebAppContext{.},../client/web/WEB-INF
INFO [19:21:59,058] AbstractConnector - Started SelectChannelConnector@0.0.0.0:9090
INFO [19:21:59,064] SymmetricWebServer - Starting JMX HTTP console on port 9091
INFO [19:21:59,145] SymmetricWebServer - Joining the web server main thread
HttpAdaptor version 3.0.1 started on port 9091

我该如何解决?谢谢你。

4

1 回答 1

2
SymmetricWebServer node = new SymmetricWebServer("symmmetric.properties");
node.setWebAppDir(webAppDir);
node.setJoin(false);
node.start(9090);
于 2014-11-18T01:02:40.433 回答