| 1 |
<!-- |
| 2 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 |
contributor license agreements. See the NOTICE file distributed with |
| 4 |
this work for additional information regarding copyright ownership. |
| 5 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 |
(the "License"); you may not use this file except in compliance with |
| 7 |
the License. You may obtain a copy of the License at |
| 8 |
|
| 9 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
|
| 11 |
Unless required by applicable law or agreed to in writing, software |
| 12 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
See the License for the specific language governing permissions and |
| 15 |
limitations under the License. |
| 16 |
--> |
| 17 |
<!-- START SNIPPET: example --> |
| 18 |
<beans |
| 19 |
xmlns="http://www.springframework.org/schema/beans" |
| 20 |
xmlns:amq="http://activemq.apache.org/schema/core" |
| 21 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 22 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd |
| 23 |
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd |
| 24 |
http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd"> |
| 25 |
|
| 26 |
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="target/" useJmx="false" deleteAllMessagesOnStartup="true"> |
| 27 |
|
| 28 |
<persistenceAdapter> |
| 29 |
<jdbcPersistenceAdapter dataSource="#derby-ds" dataDirectory="target/"/> |
| 30 |
</persistenceAdapter> |
| 31 |
|
| 32 |
<destinationPolicy> |
| 33 |
<policyMap> |
| 34 |
<policyEntries> |
| 35 |
<policyEntry queue=">" memoryLimit="10240"/> |
| 36 |
<policyEntry topic=">" memoryLimit="10240"> |
| 37 |
</policyEntry> |
| 38 |
</policyEntries> |
| 39 |
</policyMap> |
| 40 |
</destinationPolicy> |
| 41 |
|
| 42 |
|
| 43 |
<systemUsage> |
| 44 |
<systemUsage> |
| 45 |
<memoryUsage> |
| 46 |
<memoryUsage limit="102400"/> |
| 47 |
</memoryUsage> |
| 48 |
<storeUsage> |
| 49 |
<storeUsage limit="1 gb" name="foo"/> |
| 50 |
</storeUsage> |
| 51 |
<tempUsage> |
| 52 |
<tempUsage limit="100 mb"/> |
| 53 |
</tempUsage> |
| 54 |
</systemUsage> |
| 55 |
</systemUsage> |
| 56 |
|
| 57 |
<transportConnectors> |
| 58 |
<transportConnector name="openwire" uri="tcp://localhost:61616" discoveryUri="multicast://default"/> |
| 59 |
</transportConnectors> |
| 60 |
</broker> |
| 61 |
|
| 62 |
|
| 63 |
<bean id="derby-ds" class="org.apache.derby.jdbc.EmbeddedDataSource"> |
| 64 |
<property name="databaseName" value="derbydb"/> |
| 65 |
<property name="createDatabase" value="create"/> |
| 66 |
</bean> |
| 67 |
|
| 68 |
</beans> |
| 69 |
<!-- END SNIPPET: example --> |