Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.86 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements.  See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership.  The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License.  You may obtain a copy of the License at
  10.  
  11.  http://www.apache.org/licenses/LICENSE-2.0
  12.  
  13. Unless required by applicable law or agreed to in writing,
  14. software distributed under the License is distributed on an
  15. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. KIND, either express or implied.  See the License for the
  17. specific language governing permissions and limitations
  18. under the License.
  19. --><configuration xmlns="urn:activemq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:activemq /schema/artemis-server.xsd">
  20.  
  21.    
  22.  
  23.    <core xmlns="urn:activemq:core">
  24.  
  25.       <journal-type>ASYNCIO</journal-type>
  26.  
  27.       <bindings-directory>./data/bindings</bindings-directory>
  28.  
  29.       <journal-directory>./data/journal</journal-directory>
  30.  
  31.       <large-messages-directory>./data/largemessages</large-messages-directory>
  32.  
  33.       <paging-directory>./data/paging</paging-directory>
  34.  
  35.       <cluster-user>***********</cluster-user>
  36.  
  37.       <cluster-password>************</cluster-password>
  38.  
  39.       <!-- Connectors -->
  40.  
  41.       <connectors>
  42.          <connector name="netty-ssl-connector">tcp://<FQDN>:<PORT NUMBER>?sslEnabled=true</connector>
  43.       </connectors>
  44.  
  45.       <!-- Acceptors -->
  46.       <acceptors>
  47.          <acceptor name="netty-ssl-acceptor">tcp://<FQDN>:<PORT NUMBER>?sslEnabled=true;keyStorePath=<Key Store Path>;keyStorePassword=*********</acceptor>
  48.       </acceptors>
  49.  
  50.       <!-- Clustering configuration -->
  51.  
  52.       <broadcast-groups>
  53.          <broadcast-group name="my-broadcast-group">
  54.             <broadcast-period>5000</broadcast-period>
  55.             <jgroups-file>JGROUP XML FILE</jgroups-file>
  56.             <jgroups-channel>active_broadcast_channel</jgroups-channel>
  57.             <connector-ref>netty-ssl-connector</connector-ref>
  58.          </broadcast-group>
  59.       </broadcast-groups>
  60.  
  61.       <discovery-groups>
  62.          <discovery-group name="my-discovery-group">
  63.             <jgroups-file>JGROUP XML FILE</jgroups-file>
  64.             <jgroups-channel>active_broadcast_channel</jgroups-channel>
  65.             <refresh-timeout>10000</refresh-timeout>
  66.          </discovery-group>
  67.       </discovery-groups>
  68.  
  69.       <cluster-connections>
  70.          <cluster-connection name="my-cluster">
  71.             <connector-ref>netty-ssl-connector</connector-ref>
  72.             <retry-interval>500</retry-interval>
  73.             <use-duplicate-detection>true</use-duplicate-detection>
  74.             <message-load-balancing>ON_DEMAND</message-load-balancing>
  75.             <max-hops>1</max-hops>
  76.             <discovery-group-ref discovery-group-name="my-discovery-group"/>
  77.          </cluster-connection>
  78.       </cluster-connections>
  79.  
  80.       <grouping-handler name="my-grouping-handler">
  81.          <type>REMOTE</type>
  82.          <address>exampleQueue</address>
  83.          <timeout>5000</timeout>
  84.       </grouping-handler>
  85.  
  86.       <!-- Other config -->
  87.  
  88.       <!-- once the disk hits this limit the system will block, or close the connection in certain protocols
  89.                that won't support flow control. -->
  90.       <max-disk-usage>90</max-disk-usage>
  91.  
  92.  
  93.       <!-- the system will enter into page mode once you hit this limit.
  94.                      This is an estimate in bytes of how much the messages are using in memory -->
  95.       <global-max-size>419430400</global-max-size>
  96.  
  97.       <message-expiry-scan-period>50000</message-expiry-scan-period>
  98.       <message-expiry-thread-priority>8</message-expiry-thread-priority>
  99.  
  100.       <security-settings>
  101.      <security-setting match="#">
  102.             <permission type="createNonDurableQueue" roles="<Security Group>"/>
  103.             <permission type="deleteNonDurableQueue" roles="<Security Group>"/>
  104.             <permission type="createDurableQueue" roles="<Security Group>"/>
  105.             <permission type="deleteDurableQueue" roles="<Security Group>"/>
  106.             <permission type="createAddress" roles="<Security Group>"/>
  107.             <permission type="deleteAddress" roles="<Security Group>"/>
  108.             <permission type="consume" roles="<Security Group>,<Security Group>"/>
  109.             <permission type="browse" roles="<Security Group>,<Security Group>"/>
  110.             <permission type="send" roles="<Security Group>,<Security Group>"/>
  111.             <permission type="manage" roles="<Security Group>"/>
  112.          </security-setting>
  113.          <security-setting match="<Address Name>">
  114.             <permission type="createDurableQueue" roles="<Security Group>,<Security Group>"/>
  115.             <permission type="consume" roles="<Security Group>,<Security Group>"/>
  116.             <permission type="browse" roles="<Security Group>,<Security Group>"/>
  117.             <permission type="send" roles="<Security Group>,<Security Group>"/>
  118.             <permission type="manage" roles="<Security Group>"/>
  119.          </security-setting>
  120.          <!--security for example queue-->
  121.       </security-settings>
  122.  
  123.       <address-settings>
  124.          <address-setting match="#">
  125.            <max-size-bytes>104857600</max-size-bytes>
  126.            <page-size-bytes>10485760</page-size-bytes>
  127.            <address-full-policy>PAGE</address-full-policy>
  128.            <expiry-address><EXQ></expiry-address>
  129.            <redelivery-delay>5000</redelivery-delay>
  130.            <redelivery-delay-multiplier>2</redelivery-delay-multiplier>
  131.            <max-redelivery-delay>50000</max-redelivery-delay>
  132.            <dead-letter-address><DLQ></dead-letter-address>
  133.            <max-delivery-attempts>5</max-delivery-attempts>
  134.            <redistribution-delay>500</redistribution-delay>
  135.          </address-setting>
  136.       </address-settings>
  137.  
  138.       <addresses>
  139.          <address name="exampleQueue">
  140.             <anycast>
  141.                <queue name="exampleQueue"/>
  142.             </anycast>
  143.          </address>
  144.          <address name="<Address Name>">
  145.             <anycast>
  146.                <queue name="Queue Name">
  147.                    <filter string="color='red'"/>
  148.                </queue>
  149.                <queue name="Queue Name">
  150.                    <filter string="color='yellow'"/>
  151.                </queue>
  152.                <queue name="Queue Name">
  153.                    <filter string="color='Green'"/>
  154.                </queue>
  155.             </anycast>
  156.          </address>
  157.          <address name="<EXQ>">
  158.            <anycast>
  159.              <queue name="<EXQ>"/>
  160.            </anycast>
  161.          </address>
  162.          <address name="<DLQ>">
  163.            <anycast>
  164.              <queue name="<DLQ>"/>
  165.            </anycast>
  166.          </address>
  167.       </addresses>
  168.    </core>
  169. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement