2015-01-05 07:45:36 -05:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
|
|
|
|
2014-10-31 06:20:28 -04:00
|
|
|
<html>
|
|
|
|
<head>
|
2015-05-13 06:12:07 -04:00
|
|
|
<title>ActiveMQ Artemis JMS Scale Down Example</title>
|
2015-08-10 10:41:52 -04:00
|
|
|
<link rel="stylesheet" type="text/css" href="../../../common/common.css" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../../common/prettify.css" />
|
|
|
|
<script type="text/javascript" src="../../../common/prettify.js"></script>
|
2014-10-31 06:20:28 -04:00
|
|
|
</head>
|
|
|
|
<body onload="prettyPrint()">
|
|
|
|
<h1>JMS Colocated Failover Shared Store Example</h1>
|
|
|
|
|
2015-08-05 15:33:20 -04:00
|
|
|
<pre>To run the example, simply type <b>mvn verify</b> from this directory.</pre>
|
|
|
|
|
|
|
|
|
2014-10-31 06:20:28 -04:00
|
|
|
<p>This example demonstrates how you can configure a live server to scale down messages to another live server on shutdown.
|
|
|
|
<p>This example starts 2 live servers each one with a connector configured for the other live server.</p>
|
|
|
|
<p>The second live server is killed and its messages are scaled down to the first server on shutdown.</p>
|
|
|
|
<p>The following shows how to configure the live servers to scale down to one another.</p>
|
|
|
|
<pre class="prettyprint">
|
2014-11-10 11:14:12 -05:00
|
|
|
<code>
|
|
|
|
<ha-policy>
|
|
|
|
<live-only>
|
|
|
|
<scale-down>
|
|
|
|
<connectors>
|
|
|
|
<connector-ref>server0-connector</connector-ref>
|
|
|
|
</connectors>
|
|
|
|
</scale-down>
|
|
|
|
</live-only>
|
|
|
|
</ha-policy>
|
2014-10-31 06:20:28 -04:00
|
|
|
</code>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|