【问题标题】:How to add h2Settings in deployNodes task of Corda?如何在 Corda 的 deployNodes 任务中添加 h2Settings?
【发布时间】:2020-02-04 10:24:18
【问题描述】:

我想在 Corda deployNodes gradle 任务中添加 h2 数据库设置。我看到我们可以使用 h2Port 字段来指定它。但我想指定 IP/容器名称而不是 localhost。

在node.conf文件中可以实现

h2Settings {
    address: "localhost:12345"
}

我还找到了一种使用 extraConfig 选项的方法,但它不适用于 localhost 以外的其他选项。

extraConfig = ['h2Settings.address' : 'localhost:12345']

有办法实现吗?

【问题讨论】:

    标签: deployment config h2 corda


    【解决方案1】:

    Corda 目前不支持远程 H2 数据库。

    h2Settings 的主要用途是允许从远程机器对 h2 数据库进行外部访问。

    更多信息可以在这里找到:https://docs.corda.net/node-database-access-h2.html#connecting-via-a-socket-on-a-running-node

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-25
      • 2020-07-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-12
      • 1970-01-01
      相关资源
      最近更新 更多