Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- 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.
- -->
- <!--
- Simple Broker Configuration (one instance only) to start a broker for
- EPMS feeds availability for multiple clients. It works in conjuction
- with a consumer/producer service to deposit JSON messages into a TOPIC.
- SIBS INTERNATIONAL 2016 - contact: support@sibs-international.com
- -->
- <!-- Last modification on 2017-03-31 20:13:18 by root -->
- <beans
- xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
- <!-- Allows accessing the server log -->
- <bean id="logQuery" class="io.fabric8.insight.log.log4j.Log4jLogQuery"
- lazy-init="false" scope="singleton"
- init-method="start" destroy-method="stop">
- </bean>
- <!--
- The <broker> element is used to configure the ActiveMQ broker.
- To delete all messages on startup, add this to the broker: deleteAllMessagesOnStartup="true"
- -->
- <broker xmlns="http://activemq.apache.org/schema/core" brokerName="feeds-broker" dataDirectory="../data"
- offlineDurableSubscriberTimeout="86400000" offlineDurableSubscriberTaskSchedule="3600000" persistent="true">
- <!--
- Destinations created on start up for this broker:
- * FEEDS.TOPIC - Topic for EPMS Feeds where consumers will connect.
- -->
- <destinations>
- <queue physicalName="FEEDS.IN.POSVAS"/>
- <topic physicalName="FEEDS.TOPIC"/>
- <queue physicalName="FEEDS.OUT.FORWARD"/>
- <queue physicalName="FEEDS.OUT.BANK.57" />
- <queue physicalName="FEEDS.OUT.PTSP.18" />
- </destinations>
- <!-- Feeds forwarding -->
- <destinationInterceptors>
- <virtualDestinationInterceptor>
- <virtualDestinations>
- <compositeQueue name="FEEDS.OUT.FORWARD" forwardOnly="true">
- <forwardTo>
- <filteredDestination selector="BANK_CODE = 57" queue="FEEDS.OUT.BANK.57"/>
- <filteredDestination selector="PTSP_CODE = 18" queue="FEEDS.OUT.PTSP.18"/>
- </forwardTo>
- </compositeQueue>
- </virtualDestinations>
- </virtualDestinationInterceptor>
- </destinationInterceptors>
- <!--
- The managementContext is used to configure how ActiveMQ is exposed in
- JMX. By default, ActiveMQ uses the MBean server that is started by
- the JVM. For more information, see:
- http://activemq.apache.org/jmx.html
- -->
- <managementContext>
- <managementContext createConnector="false"/>
- </managementContext>
- <!--
- Configure message persistence for the broker. The default persistence
- mechanism is the KahaDB store (identified by the kahaDB tag).
- For more information, see:
- http://activemq.apache.org/persistence.html
- -->
- <persistenceAdapter>
- <kahaDB directory="../data/kahadb"/>
- </persistenceAdapter>
- <!--
- The systemUsage controls the maximum amount of space the broker will
- use before disabling caching and/or slowing down producers. For more information, see:
- http://activemq.apache.org/producer-flow-control.html
- -->
- <systemUsage>
- <systemUsage>
- <memoryUsage>
- <memoryUsage percentOfJvmHeap="70" />
- </memoryUsage>
- <storeUsage>
- <storeUsage limit="190 gb"/>
- </storeUsage>
- <tempUsage>
- <tempUsage limit="50 gb"/>
- </tempUsage>
- </systemUsage>
- </systemUsage>
- <!--
- The transport connectors expose ActiveMQ over a given protocol to
- clients and other brokers. For more information, see:
- http://activemq.apache.org/configuring-transports.html
- -->
- <transportConnectors>
- <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
- <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
- </transportConnectors>
- <plugins>
- <simpleAuthenticationPlugin>
- <users>
- <authenticationUser username="system" password="s1b$m4n4g3r" groups="admins"/>
- <authenticationUser username="consumer" password="_r1dg3p4$$" groups="consumers"/>
- <authenticationUser username="posvas" password="pP0$Rv4$D_" groups="posvas"/>
- <authenticationUser username="bank57" password="mgFkW1OJ3rce4gjKIBsd2tPNqTm1Vsuw" groups="bank57"/>
- <authenticationUser username="ptsp18" password="Xv1i9hi1jfyUMalBK7XGqi2wHpsKkcdX" groups="ptsp18"/>
- </users>
- </simpleAuthenticationPlugin>
- <authorizationPlugin>
- <map>
- <authorizationMap>
- <authorizationEntries>
- <authorizationEntry queue="FEEDS.IN.POSVAS" read="admins,consumers" write="posvas" admin="admins"/>
- <authorizationEntry topic="FEEDS.TOPIC" read="admins,consumers" write="admins" admin="admins"/>
- <authorizationEntry queue="FEEDS.OUT.FORWARD" read="admins" write="admins" admin="admins"/>
- <authorizationEntry queue="FEEDS.OUT.BANK.57" read="admins,bank57" write="admins" admin="admins"/>
- <authorizationEntry queue="FEEDS.OUT.PTSP.18" read="admins,ptsp18" write="admins" admin="admins"/>
- <authorizationEntry topic="ActiveMQ.Advisory.>" read="admins,consumers,ptsp18,bank57,posvas" write="admins,consumers,posvas" admin="admins,consumers,ptsp18,bank57,posvas"/>
- </authorizationEntries>
- </authorizationMap>
- </map>
- </authorizationPlugin>
- </plugins>
- </broker>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement