【问题标题】:Configuring Wildfly standalone.xml in Galleon feature-pack在 Galleon 功能包中配置 Wildfly Standalone.xml
【发布时间】:2020-02-24 12:00:33
【问题描述】:

我正在为提供 Camunda BPM subsystem 的 Galleon 功能包开发 POC。

我目前的进度可以在这里找到:https://github.com/marcus-nl/camunda-galleon-pack

This article 和链接的示例/模板到目前为止一直很有帮助,但不幸的是,我遇到了这些问题并没有完全涵盖的一点:自定义standalone.xml 配置。

standalone.xml 所需的补充如下:standalone.xml。所以基本上有4个补充:

  1. Camunda BPM 扩展和子系统。这没问题。
  2. H2 驱动程序和 Camunda 数据源。 wildfly-datasources-galleon-pack 对此非常有帮助。
  3. 作业执行器配置。
  4. 流程引擎配置。

我不知道如何实现3和4。从3开始,简单添加job-executor(没有嵌套的job-acquisitions元素)的CLI命令如下:

/subsystem=camunda-bpm-platform/job-executor=job-executor:add(core-threads=3, max-threads=5, queue-length=10)

经过一些实验,我得出了以下功能规范(请参阅camunda-subsystem.xml):

<feature spec="subsystem.camunda-bpm-platform">
  <param name="subsystem" value="subsystem.camunda-bpm-platform"/>
  <feature spec="subsystem.camunda-bpm-platform.job-executor">
    <param name="job-executor" value="default"/>
    <param name="core-threads" value="3"/>
    <param name="max-threads"  value="5"/>
    <param name="queue-length" value="10"/>
  </feature>
</feature>

导致错误信息:

未能构建名为standalone.xml 的独立配置模型: 无法解析功能参考subsystem.camunda-bpm-platform for {com.github.marcus-nl.camunda-galleon}subsystem.camunda-bpm-platform.job-executor: 外键参数主机 {com.github.marcus-nl.camunda-galleon}subsystem.camunda-bpm-platform.job-executor 参考子系统.camunda-bpm-platform 不存在

我被困在那里。 IIUC 这与 camunda-bpm-platform 元素和 job-executor 元素之间的父子关系有关。 “外键参数host”似乎是指the generated spec.xml for camunda-bpm-platformthis is the one for job-executor btw)中的“host”参数,但如果我尝试如下定义:

<feature spec="subsystem.camunda-bpm-platform">
  <param name="host" value="subsystem.camunda-bpm-platform"/>
  <param name="subsystem" value="subsystem.camunda-bpm-platform"/>

我收到错误“功能规范子系统.camunda-bpm-platform.job-executor 没有定义参数主机”,即使(如您所见)我在父级“camunda-bpm-platform”中定义了参数,而不是“工作执行者”的孩子。

我在这里缺少什么?有人能指出我正确的方向吗?

【问题讨论】:

  • 在我看来,如果您在子系统中定义主机,那么它就会成为地址的一部分,因此您必须在子元素中定义它。
  • 您是否也在为主机和域生成?

标签: wildfly


【解决方案1】:

您似乎遇到了大帆船中的错误。我们正在调查它。现在,您可以通过生成域的功能来解决此问题,如下所示:https://github.com/wildfly/wildfly/blob/master/galleon-pack/wildfly-feature-pack-build.xml#L89

谢谢。

【讨论】:

  • 为域生成也成功了。谢谢!对于遇到此问题的其他人,this Wildfly forum topic 有更多背景信息。
猜你喜欢
  • 2019-12-10
  • 1970-01-01
  • 2023-03-25
  • 2021-01-30
  • 1970-01-01
  • 2019-08-29
  • 2021-03-12
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多