gpt4 book ai didi

jms - 如何使用 ActiveMQ Artemis 在 Wildfly 24 服务上配置 jms-queue

转载 作者:行者123 更新时间:2023-12-05 05:55:38 24 4
gpt4 key购买 nike

我正在尝试在 WildFly 24 上配置一个简单的 JMS 消息队列。我正在使用 standalone-full.xml 启动服务器。我看到以下配置:

<subsystem xmlns="urn:jboss:domain:messaging-activemq:13.0">
<remote-connector name="artemis" socket-binding="messaging-activemq">
<param name="use-nio" value="true"/>
<param name="use-nio-global-worker-pool" value="true"/>
</remote-connector>
<pooled-connection-factory name="activemq-ra" entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory" connectors="artemis" transaction="xa" user="guest" password="guest" />
</subsystem>

我关注了the documentation并将以下配置添加到 standalone-full.xmlstandalone-full-ha.xml 配置中:

<subsystem xmlns="urn:jboss:domain:messaging-activemq:13.0">
<server name="default">
<http-connector name="http-connector"
socket-binding="http"
endpoint="http-acceptor" />
<http-connector name="http-connector-throughput"
socket-binding="http"
endpoint="http-acceptor-throughput">
<param name="batch-delay"
value="50"/>
</http-connector>
<in-vm-connector name="in-vm"
server-id="0"/>
<connection-factory name="InVmConnectionFactory"
connectors="in-vm"
entries="java:/ConnectionFactory" />
<pooled-connection-factory name="activemq-ra"
transaction="xa"
connectors="in-vm"
entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory"/>
<jms-queue name="testQueue"
entries="jms/queue/test java:jboss/exported/jms/queue/test" />
</server>
</subsystem>

服务器启动失败,出现以下异常:

WFLYCTL0362: Capabilities required by resource '/subsystem=messaging-activemq/server=default' are not available: org.wildfly.security.legacy-security-domain.other; There are no known registration points which can provide this capability.

WildFly 文档是否过时?我在这里错过了什么吗?请告诉我在 WildFly 24 中配置 jms-queue 的正确方法

最佳答案

默认情况下,如果未定义安全域(已弃用)或 elytron 域,则安全域为遗留的“其他”。您需要将这样的安全域配置为您的一个或恢复旧的“其他”域。

关于jms - 如何使用 ActiveMQ Artemis 在 Wildfly 24 服务上配置 jms-queue,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69421469/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com