首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

如何在Wildfly 10中配置JMS ?在子系统下找不到JMS菜单

在Wildfly 10中配置JMS,可以按照以下步骤进行操作:

  1. 打开Wildfly 10的安装目录,进入standalone文件夹。
  2. standalone文件夹中,找到configuration文件夹,进入该文件夹。
  3. configuration文件夹中,找到standalone.xml文件,使用文本编辑器打开该文件。
  4. standalone.xml文件中,找到<subsystem xmlns="urn:jboss:domain:messaging-activemq:1.0">节点,该节点用于配置JMS。
  5. <subsystem xmlns="urn:jboss:domain:messaging-activemq:1.0">节点下,可以配置JMS的相关属性,如连接工厂、队列、主题等。
  6. 如果在子系统下找不到JMS菜单,可能是由于配置文件中缺少JMS相关的配置信息。可以手动添加以下配置信息:
代码语言:xml
复制
<subsystem xmlns="urn:jboss:domain:messaging-activemq:1.0">
    <server name="default">
        <security-setting name="#">
            <role name="guest" send="true" consume="true" create-non-durable-queue="true" delete-non-durable-queue="true"/>
        </security-setting>
        <address-setting name="#" dead-letter-address="jms.queue.DLQ" expiry-address="jms.queue.ExpiryQueue" max-size-bytes="10485760" page-size-bytes="2097152" message-counter-history-day-limit="10"/>
        <http-connector name="http-connector" endpoint="http-acceptor" socket-binding="http"/>
        <http-connector name="http-connector-throughput" endpoint="http-acceptor-throughput" socket-binding="http">
            <param name="batch-delay" value="50"/>
        </http-connector>
        <in-vm-connector name="in-vm" server-id="0"/>
        <http-acceptor name="http-acceptor" http-listener="default"/>
        <http-acceptor name="http-acceptor-throughput" http-listener="default">
            <param name="batch-delay" value="50"/>
            <param name="direct-deliver" value="false"/>
        </http-acceptor>
        <in-vm-acceptor name="in-vm" server-id="0"/>
        <jms-queue name="ExpiryQueue" entries="java:/jms/queue/ExpiryQueue"/>
        <jms-queue name="DLQ" entries="java:/jms/queue/DLQ"/>
        <jms-queue name="YourQueue" entries="java:/jms/queue/YourQueue"/>
        <jms-topic name="YourTopic" entries="java:/jms/topic/YourTopic"/>
    </server>
</subsystem>

以上配置信息中,YourQueueYourTopic分别表示你自定义的队列和主题名称,可以根据实际需求进行修改。

  1. 保存standalone.xml文件,并重新启动Wildfly 10服务器。
  2. 配置完成后,你可以通过JMS API来使用配置的JMS队列和主题。

关于Wildfly 10的JMS配置,你可以参考腾讯云的产品文档,了解更多相关信息:Wildfly 10 JMS配置

页面内容是否对你有帮助?
有帮助
没帮助

相关·内容

领券