設定 Broker

使用 ActiveMQ Classic > 設定 Broker

總覽

在 ActiveMQ Classic 4 中,我們使用新的 XML 格式來設定 Broker。

語法

以下 XSD 描述了 Broker 設定檔的語法。

activemq-4.0.xsd

這裡有該 XSD 檔案的參考文件。

activemq-4.0.xsd.html

範例

<beans xmlns="http://activemq.org/config/1.0">

  <broker useJmx="true">
  
    <persistenceAdapter>
      <journaledJDBC journalLogFiles="5" dataDirectory="../data"/>
    </persistenceAdapter>
  
    <transportConnectors>
      <transportConnector uri="discovery:tcp://127.0.0.1:61616"/>
    </transportConnectors>
    
    <networkConnectors>
      <networkConnector uri="multicast"/>
    </networkConnectors>
    
  </broker>
  
</beans>

Apache, ActiveMQ, Apache ActiveMQ、Apache 羽毛標誌和 Apache ActiveMQ 專案標誌是 The Apache Software Foundation 的商標。 版權所有 © 2024,The Apache Software Foundation。 根據 Apache License 2.0 授權。