在 Galleon 功能包中配置 Wildfly standalone.xml
Configuring Wildfly standalone.xml in Galleon feature-pack
我正在为提供 Camunda BPM subsystem.
的 Galleon 功能包开发 POC
我目前的进度可以在这里找到:https://github.com/marcus-nl/camunda-galleon-pack
This article 和链接的 example/template 到目前为止非常有帮助,但不幸的是我被困在这些没有完全涵盖的地方:自定义 standalone.xml 配置.
standalone.xml 所需的补充如下:standalone.xml。所以基本上有4个加法:
- Camunda BPM 扩展和子系统。这没问题。
- H2 驱动程序和 Camunda 数据源。 wildfly-datasources-galleon-pack 对此很有帮助。
- 作业执行器配置。
- 流程引擎配置。
我不知道如何实现 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>
导致错误信息:
Failed to build configuration model standalone named standalone.xml:
Failed to resolve feature reference subsystem.camunda-bpm-platform for
{com.github.marcus-nl.camunda-galleon}subsystem.camunda-bpm-platform.job-executor:
Foreign key parameter host of
{com.github.marcus-nl.camunda-galleon}subsystem.camunda-bpm-platform.job-executor
reference subsystem.camunda-bpm-platform does not exist
我被困在那里了。 IIUC 这与 camunda-bpm-platform 元素和 job-executor 元素之间的父子关系有关。 "foreign key parameter host" 似乎指的是 the generated spec.xml for camunda-bpm-platform (this 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"/>
我收到错误 "Feature spec subsystem.camunda-bpm-platform.job-executor does not define parameter host",尽管(如您所见)我在父项 "camunda-bpm-platform" 中定义了参数,而不是 "job-executor" 子项。
我在这里错过了什么?有人能给我指出正确的方向吗?
看来您 运行 遇到了 galleon 中的错误。我们正在调查。现在,您可以通过为域生成功能来解决该问题,如下所示:https://github.com/wildfly/wildfly/blob/master/galleon-pack/wildfly-feature-pack-build.xml#L89
谢谢。
我正在为提供 Camunda BPM subsystem.
的 Galleon 功能包开发 POC我目前的进度可以在这里找到:https://github.com/marcus-nl/camunda-galleon-pack
This article 和链接的 example/template 到目前为止非常有帮助,但不幸的是我被困在这些没有完全涵盖的地方:自定义 standalone.xml 配置.
standalone.xml 所需的补充如下:standalone.xml。所以基本上有4个加法:
- Camunda BPM 扩展和子系统。这没问题。
- H2 驱动程序和 Camunda 数据源。 wildfly-datasources-galleon-pack 对此很有帮助。
- 作业执行器配置。
- 流程引擎配置。
我不知道如何实现 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>
导致错误信息:
Failed to build configuration model standalone named standalone.xml: Failed to resolve feature reference subsystem.camunda-bpm-platform for {com.github.marcus-nl.camunda-galleon}subsystem.camunda-bpm-platform.job-executor: Foreign key parameter host of {com.github.marcus-nl.camunda-galleon}subsystem.camunda-bpm-platform.job-executor reference subsystem.camunda-bpm-platform does not exist
我被困在那里了。 IIUC 这与 camunda-bpm-platform 元素和 job-executor 元素之间的父子关系有关。 "foreign key parameter host" 似乎指的是 the generated spec.xml for camunda-bpm-platform (this 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"/>
我收到错误 "Feature spec subsystem.camunda-bpm-platform.job-executor does not define parameter host",尽管(如您所见)我在父项 "camunda-bpm-platform" 中定义了参数,而不是 "job-executor" 子项。
我在这里错过了什么?有人能给我指出正确的方向吗?
看来您 运行 遇到了 galleon 中的错误。我们正在调查。现在,您可以通过为域生成功能来解决该问题,如下所示:https://github.com/wildfly/wildfly/blob/master/galleon-pack/wildfly-feature-pack-build.xml#L89
谢谢。