Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
- --><configuration xmlns="urn:activemq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:activemq /schema/artemis-server.xsd">
- <core xmlns="urn:activemq:core">
- <journal-type>ASYNCIO</journal-type>
- <bindings-directory>./data/bindings</bindings-directory>
- <journal-directory>./data/journal</journal-directory>
- <large-messages-directory>./data/largemessages</large-messages-directory>
- <paging-directory>./data/paging</paging-directory>
- <cluster-user>***********</cluster-user>
- <cluster-password>************</cluster-password>
- <!-- Connectors -->
- <connectors>
- <connector name="netty-ssl-connector">tcp://<FQDN>:<PORT NUMBER>?sslEnabled=true</connector>
- </connectors>
- <!-- Acceptors -->
- <acceptors>
- <acceptor name="netty-ssl-acceptor">tcp://<FQDN>:<PORT NUMBER>?sslEnabled=true;keyStorePath=<Key Store Path>;keyStorePassword=*********</acceptor>
- </acceptors>
- <!-- Clustering configuration -->
- <broadcast-groups>
- <broadcast-group name="my-broadcast-group">
- <broadcast-period>5000</broadcast-period>
- <jgroups-file>JGROUP XML FILE</jgroups-file>
- <jgroups-channel>active_broadcast_channel</jgroups-channel>
- <connector-ref>netty-ssl-connector</connector-ref>
- </broadcast-group>
- </broadcast-groups>
- <discovery-groups>
- <discovery-group name="my-discovery-group">
- <jgroups-file>JGROUP XML FILE</jgroups-file>
- <jgroups-channel>active_broadcast_channel</jgroups-channel>
- <refresh-timeout>10000</refresh-timeout>
- </discovery-group>
- </discovery-groups>
- <cluster-connections>
- <cluster-connection name="my-cluster">
- <connector-ref>netty-ssl-connector</connector-ref>
- <retry-interval>500</retry-interval>
- <use-duplicate-detection>true</use-duplicate-detection>
- <message-load-balancing>ON_DEMAND</message-load-balancing>
- <max-hops>1</max-hops>
- <discovery-group-ref discovery-group-name="my-discovery-group"/>
- </cluster-connection>
- </cluster-connections>
- <grouping-handler name="my-grouping-handler">
- <type>REMOTE</type>
- <address>exampleQueue</address>
- <timeout>5000</timeout>
- </grouping-handler>
- <!-- Other config -->
- <!-- once the disk hits this limit the system will block, or close the connection in certain protocols
- that won't support flow control. -->
- <max-disk-usage>90</max-disk-usage>
- <!-- the system will enter into page mode once you hit this limit.
- This is an estimate in bytes of how much the messages are using in memory -->
- <global-max-size>419430400</global-max-size>
- <message-expiry-scan-period>50000</message-expiry-scan-period>
- <message-expiry-thread-priority>8</message-expiry-thread-priority>
- <security-settings>
- <security-setting match="#">
- <permission type="createNonDurableQueue" roles="<Security Group>"/>
- <permission type="deleteNonDurableQueue" roles="<Security Group>"/>
- <permission type="createDurableQueue" roles="<Security Group>"/>
- <permission type="deleteDurableQueue" roles="<Security Group>"/>
- <permission type="createAddress" roles="<Security Group>"/>
- <permission type="deleteAddress" roles="<Security Group>"/>
- <permission type="consume" roles="<Security Group>,<Security Group>"/>
- <permission type="browse" roles="<Security Group>,<Security Group>"/>
- <permission type="send" roles="<Security Group>,<Security Group>"/>
- <permission type="manage" roles="<Security Group>"/>
- </security-setting>
- <security-setting match="<Address Name>">
- <permission type="createDurableQueue" roles="<Security Group>,<Security Group>"/>
- <permission type="consume" roles="<Security Group>,<Security Group>"/>
- <permission type="browse" roles="<Security Group>,<Security Group>"/>
- <permission type="send" roles="<Security Group>,<Security Group>"/>
- <permission type="manage" roles="<Security Group>"/>
- </security-setting>
- <!--security for example queue-->
- </security-settings>
- <address-settings>
- <address-setting match="#">
- <max-size-bytes>104857600</max-size-bytes>
- <page-size-bytes>10485760</page-size-bytes>
- <address-full-policy>PAGE</address-full-policy>
- <expiry-address><EXQ></expiry-address>
- <redelivery-delay>5000</redelivery-delay>
- <redelivery-delay-multiplier>2</redelivery-delay-multiplier>
- <max-redelivery-delay>50000</max-redelivery-delay>
- <dead-letter-address><DLQ></dead-letter-address>
- <max-delivery-attempts>5</max-delivery-attempts>
- <redistribution-delay>500</redistribution-delay>
- </address-setting>
- </address-settings>
- <addresses>
- <address name="exampleQueue">
- <anycast>
- <queue name="exampleQueue"/>
- </anycast>
- </address>
- <address name="<Address Name>">
- <anycast>
- <queue name="Queue Name">
- <filter string="color='red'"/>
- </queue>
- <queue name="Queue Name">
- <filter string="color='yellow'"/>
- </queue>
- <queue name="Queue Name">
- <filter string="color='Green'"/>
- </queue>
- </anycast>
- </address>
- <address name="<EXQ>">
- <anycast>
- <queue name="<EXQ>"/>
- </anycast>
- </address>
- <address name="<DLQ>">
- <anycast>
- <queue name="<DLQ>"/>
- </anycast>
- </address>
- </addresses>
- </core>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement