| 1 |
<!-- |
| 2 |
|
| 3 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 |
contributor license agreements. See the NOTICE file distributed with |
| 5 |
this work for additional information regarding copyright ownership. |
| 6 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 7 |
(the "License"); you may not use this file except in compliance with |
| 8 |
the License. You may obtain a copy of the License at |
| 9 |
|
| 10 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
|
| 12 |
Unless required by applicable law or agreed to in writing, software |
| 13 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 14 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 |
See the License for the specific language governing permissions and |
| 16 |
limitations under the License. |
| 17 |
|
| 18 |
--> |
| 19 |
|
| 20 |
<beans |
| 21 |
xmlns="http://www.springframework.org/schema/beans" |
| 22 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 23 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd |
| 24 |
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"> |
| 25 |
|
| 26 |
|
| 27 |
<broker xmlns="http://activemq.apache.org/schema/core" |
| 28 |
brokerName="${broker-name}" |
| 29 |
dataDirectory="${data}" |
| 30 |
start="false"> |
| 31 |
|
| 32 |
<destinationPolicy> |
| 33 |
<policyMap> |
| 34 |
<policyEntries> |
| 35 |
<policyEntry topic=">" > |
| 36 |
<pendingMessageLimitStrategy> |
| 37 |
<constantPendingMessageLimitStrategy limit="1000"/> |
| 38 |
</pendingMessageLimitStrategy> |
| 39 |
</policyEntry> |
| 40 |
</policyEntries> |
| 41 |
</policyMap> |
| 42 |
</destinationPolicy> |
| 43 |
|
| 44 |
<managementContext> |
| 45 |
<managementContext createConnector="false"/> |
| 46 |
</managementContext> |
| 47 |
|
| 48 |
<persistenceAdapter> |
| 49 |
<kahaDB directory="${data}/kahadb"/> |
| 50 |
</persistenceAdapter> |
| 51 |
|
| 52 |
<plugins> |
| 53 |
<jaasAuthenticationPlugin configuration="karaf" /> |
| 54 |
</plugins> |
| 55 |
|
| 56 |
<systemUsage> |
| 57 |
<systemUsage> |
| 58 |
<memoryUsage> |
| 59 |
<memoryUsage percentOfJvmHeap="70"/> |
| 60 |
</memoryUsage> |
| 61 |
<storeUsage> |
| 62 |
<storeUsage limit="100 gb"/> |
| 63 |
</storeUsage> |
| 64 |
<tempUsage> |
| 65 |
<tempUsage limit="50 gb"/> |
| 66 |
</tempUsage> |
| 67 |
</systemUsage> |
| 68 |
</systemUsage> |
| 69 |
|
| 70 |
<transportConnectors> |
| 71 |
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB --> |
| 72 |
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/> |
| 73 |
</transportConnectors> |
| 74 |
</broker> |
| 75 |
|
| 76 |
</beans> |