提交 1a71ccfc authored 作者: Thomas Mueller's avatar Thomas Mueller

When using AUTO_SERVER=TRUE, the server is now started as a daemon thread.

上级 ed5c9fbe
......@@ -18,7 +18,11 @@ Change Log
<h1>Change Log</h1>
<h2>Next Version (unreleased)</h2>
<ul><li>H2 Console: the built-in commands are now documented.
<ul><li>When using AUTO_SERVER=TRUE, the server is now started as a daemon thread.
This was a problem when using Tomcat and a connection pool.
</li><li>Servers can now be started as a daemon thread using the command line options
-tcpDaemon, -pgDaemon, and -webDaemon.
</li><li>H2 Console: the built-in commands are now documented.
</li><li>REPLACE: if any parameter is null, the result is null.
</li><li>Queries with DISTINCT and ORDER BY will now use the index on ORDER BY if possible.
This is specially important for queries used inside IN(SELECT ...).
......
......@@ -1122,7 +1122,7 @@ You can use the same database URL no matter if the database is already open or n
</p>
<p>
When using this mode, the first connection to the database is made in embedded mode,
and additionally a server is started internally.
and additionally a server is started internally (as a daemon thread).
If the database is already open in another process, the server mode is used automatically.
</p>
<p>
......
......@@ -602,6 +602,7 @@ public class Database implements DataHandler {
server = Server.createTcpServer(
"-tcpPort", "0",
"-tcpAllowOthers",
"-tcpDaemon",
"-key", key, databaseName);
server.start();
} catch (SQLException e) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论