Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47C9D18DCE for ; Wed, 29 Jul 2015 21:22:11 +0000 (UTC) Received: (qmail 24255 invoked by uid 500); 29 Jul 2015 21:22:11 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 24024 invoked by uid 500); 29 Jul 2015 21:22:11 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 22605 invoked by uid 99); 29 Jul 2015 21:22:08 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jul 2015 21:22:08 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 67D3DE6828; Wed, 29 Jul 2015 21:22:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: clebertsuconic@apache.org To: commits@activemq.apache.org Date: Wed, 29 Jul 2015 21:22:26 -0000 Message-Id: In-Reply-To: <063ef87492064bc7b8b78a910fba59d0@git.apache.org> References: <063ef87492064bc7b8b78a910fba59d0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [20/24] activemq-artemis git commit: ARTEMIS-178 Refactor examples to use CLI http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-grouping/src/main/resources/activemq/server1/artemis-roles.properties ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-grouping/src/main/resources/activemq/server1/artemis-roles.properties b/examples/jms/clustered-grouping/src/main/resources/activemq/server1/artemis-roles.properties deleted file mode 100644 index 4e2d44c..0000000 --- a/examples/jms/clustered-grouping/src/main/resources/activemq/server1/artemis-roles.properties +++ /dev/null @@ -1,17 +0,0 @@ -## --------------------------------------------------------------------------- -## 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. -## --------------------------------------------------------------------------- -guest=guest \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-grouping/src/main/resources/activemq/server1/artemis-users.properties ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-grouping/src/main/resources/activemq/server1/artemis-users.properties b/examples/jms/clustered-grouping/src/main/resources/activemq/server1/artemis-users.properties deleted file mode 100644 index 4e2d44c..0000000 --- a/examples/jms/clustered-grouping/src/main/resources/activemq/server1/artemis-users.properties +++ /dev/null @@ -1,17 +0,0 @@ -## --------------------------------------------------------------------------- -## 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. -## --------------------------------------------------------------------------- -guest=guest \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-grouping/src/main/resources/activemq/server1/broker.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-grouping/src/main/resources/activemq/server1/broker.xml b/examples/jms/clustered-grouping/src/main/resources/activemq/server1/broker.xml index c544203..7ab2e7e 100644 --- a/examples/jms/clustered-grouping/src/main/resources/activemq/server1/broker.xml +++ b/examples/jms/clustered-grouping/src/main/resources/activemq/server1/broker.xml @@ -30,13 +30,14 @@ under the License. - ${data.dir}/server1/data/messaging/bindings + ${data.dir:../data}/bindings - ${data.dir}/server1/data/messaging/journal + ${data.dir:../data}/journal - ${data.dir}/server1/data/messaging/largemessages + ${data.dir:../data}/largemessages + + ${data.dir:../data}/paging - ${data.dir}/server1/data/messaging/paging http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-grouping/src/main/resources/activemq/server2/artemis-roles.properties ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-grouping/src/main/resources/activemq/server2/artemis-roles.properties b/examples/jms/clustered-grouping/src/main/resources/activemq/server2/artemis-roles.properties deleted file mode 100644 index 4e2d44c..0000000 --- a/examples/jms/clustered-grouping/src/main/resources/activemq/server2/artemis-roles.properties +++ /dev/null @@ -1,17 +0,0 @@ -## --------------------------------------------------------------------------- -## 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. -## --------------------------------------------------------------------------- -guest=guest \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-grouping/src/main/resources/activemq/server2/artemis-users.properties ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-grouping/src/main/resources/activemq/server2/artemis-users.properties b/examples/jms/clustered-grouping/src/main/resources/activemq/server2/artemis-users.properties deleted file mode 100644 index 4e2d44c..0000000 --- a/examples/jms/clustered-grouping/src/main/resources/activemq/server2/artemis-users.properties +++ /dev/null @@ -1,17 +0,0 @@ -## --------------------------------------------------------------------------- -## 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. -## --------------------------------------------------------------------------- -guest=guest \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-grouping/src/main/resources/activemq/server2/broker.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-grouping/src/main/resources/activemq/server2/broker.xml b/examples/jms/clustered-grouping/src/main/resources/activemq/server2/broker.xml index d9f0c6e..1776c5c 100644 --- a/examples/jms/clustered-grouping/src/main/resources/activemq/server2/broker.xml +++ b/examples/jms/clustered-grouping/src/main/resources/activemq/server2/broker.xml @@ -30,13 +30,14 @@ under the License. - ${data.dir}/server2/data/messaging/bindings + ${data.dir:../data}/bindings - ${data.dir}/server2/data/messaging/journal + ${data.dir:../data}/journal - ${data.dir}/server2/data/messaging/largemessages + ${data.dir:../data}/largemessages + + ${data.dir:../data}/paging - ${data.dir}/server2/data/messaging/paging http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-jgroups/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-jgroups/pom.xml b/examples/jms/clustered-jgroups/pom.xml index bd17e32..b19deb3 100644 --- a/examples/jms/clustered-jgroups/pom.xml +++ b/examples/jms/clustered-jgroups/pom.xml @@ -57,38 +57,32 @@ under the License. artemis-maven-plugin - start0 + create - start + create - ${basedir}/target/classes/activemq/server0 - - - - jgroups.bind_addr - ::1 - - + + + org.jgroups:jgroups:3.6.0.Final + + ${basedir}/target/server0 + ${basedir}/target/classes/activemq/server0 - start1 + create2 - start + create - ${basedir}/target/classes/activemq/server1 - true - - - - jgroups.bind_addr - ::1 - - + + + org.jgroups:jgroups:3.6.0.Final + + ${basedir}/target/server1 + ${basedir}/target/classes/activemq/server1 + 1 @@ -99,29 +93,11 @@ under the License. org.apache.activemq.artemis.jms.example.ClusteredJgroupsExample - tcp://localhost:61616 - tcp://localhost:61617 + ${basedir}/target/server0 + ${basedir}/target/server1 - - stop0 - - stop - - - ${basedir}/target/classes/activemq/server0 - - - - stop1 - - stop - - - ${basedir}/target/classes/activemq/server1 - - @@ -129,40 +105,7 @@ under the License. clustered-jgroups ${project.version} - - org.apache.activemq - artemis-core-client - ${project.version} - - - org.apache.activemq - artemis-server - ${project.version} - - - org.apache.activemq - artemis-jms-client - ${project.version} - - - org.apache.activemq - artemis-jms-server - ${project.version} - - - io.netty - netty-all - ${netty.version} - - - org.apache.geronimo.specs - geronimo-jms_2.0_spec - ${geronimo.jms.2.spec.version} - - - false - http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-jgroups/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredJgroupsExample.java ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-jgroups/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredJgroupsExample.java b/examples/jms/clustered-jgroups/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredJgroupsExample.java index db066a1..9d7c3dc 100644 --- a/examples/jms/clustered-jgroups/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredJgroupsExample.java +++ b/examples/jms/clustered-jgroups/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredJgroupsExample.java @@ -16,8 +16,6 @@ */ package org.apache.activemq.artemis.jms.example; -import java.util.Hashtable; - import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.MessageConsumer; @@ -26,6 +24,7 @@ import javax.jms.Queue; import javax.jms.Session; import javax.jms.TextMessage; import javax.naming.InitialContext; +import java.util.Hashtable; import org.apache.activemq.artemis.common.example.ActiveMQExample; @@ -55,7 +54,7 @@ public class ClusteredJgroupsExample extends ActiveMQExample // Step 1. Get an initial context for looking up JNDI from server 0 Hashtable properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[0]); + properties.put("connectionFactory.ConnectionFactory", "tcp://localhost:61616"); properties.put("queue.queue/exampleQueue", "exampleQueue"); ic0 = new InitialContext(properties); @@ -68,7 +67,7 @@ public class ClusteredJgroupsExample extends ActiveMQExample // Step 4. Get an initial context for looking up JNDI from server 1 properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[1]); + properties.put("connectionFactory.ConnectionFactory", "tcp://localhost:61617"); ic1 = new InitialContext(properties); // Step 5. Look-up a JMS Connection Factory object from JNDI on server 1 http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/artemis-roles.properties ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/artemis-roles.properties b/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/artemis-roles.properties deleted file mode 100644 index 4e2d44c..0000000 --- a/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/artemis-roles.properties +++ /dev/null @@ -1,17 +0,0 @@ -## --------------------------------------------------------------------------- -## 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. -## --------------------------------------------------------------------------- -guest=guest \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/artemis-users.properties ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/artemis-users.properties b/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/artemis-users.properties deleted file mode 100644 index 4e2d44c..0000000 --- a/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/artemis-users.properties +++ /dev/null @@ -1,17 +0,0 @@ -## --------------------------------------------------------------------------- -## 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. -## --------------------------------------------------------------------------- -guest=guest \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/test-jgroups-file_ping.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/test-jgroups-file_ping.xml b/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/test-jgroups-file_ping.xml index 153cbf7..5fb6ab4 100644 --- a/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/test-jgroups-file_ping.xml +++ b/examples/jms/clustered-jgroups/src/main/resources/activemq/server0/test-jgroups-file_ping.xml @@ -47,7 +47,8 @@ under the License. oob_thread_pool.queue_max_size="100" oob_thread_pool.rejection_policy="run"/> - + + http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/artemis-roles.properties ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/artemis-roles.properties b/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/artemis-roles.properties deleted file mode 100644 index 4e2d44c..0000000 --- a/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/artemis-roles.properties +++ /dev/null @@ -1,17 +0,0 @@ -## --------------------------------------------------------------------------- -## 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. -## --------------------------------------------------------------------------- -guest=guest \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/artemis-users.properties ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/artemis-users.properties b/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/artemis-users.properties deleted file mode 100644 index 4e2d44c..0000000 --- a/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/artemis-users.properties +++ /dev/null @@ -1,17 +0,0 @@ -## --------------------------------------------------------------------------- -## 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. -## --------------------------------------------------------------------------- -guest=guest \ No newline at end of file http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/test-jgroups-file_ping.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/test-jgroups-file_ping.xml b/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/test-jgroups-file_ping.xml index 7013aa5..1137496 100644 --- a/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/test-jgroups-file_ping.xml +++ b/examples/jms/clustered-jgroups/src/main/resources/activemq/server1/test-jgroups-file_ping.xml @@ -47,7 +47,8 @@ under the License. oob_thread_pool.queue_max_size="100" oob_thread_pool.rejection_policy="run"/> - + + http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-queue/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-queue/pom.xml b/examples/jms/clustered-queue/pom.xml index 2924717..d4afa59 100644 --- a/examples/jms/clustered-queue/pom.xml +++ b/examples/jms/clustered-queue/pom.xml @@ -57,34 +57,24 @@ under the License. artemis-maven-plugin - start0 + create - start + create - ${basedir}/target/classes/activemq/server0 - - - udp-address - ${udp-address} - - + ${basedir}/target/server0 + ${basedir}/target/classes/activemq/server0 - start1 + create2 - start + create - ${basedir}/target/classes/activemq/server1 - true - - - udp-address - ${udp-address} - - + ${basedir}/target/server1 + ${basedir}/target/classes/activemq/server1 + 1 @@ -95,29 +85,11 @@ under the License. org.apache.activemq.artemis.jms.example.ClusteredQueueExample - tcp://localhost:61616 - tcp://localhost:61617 + ${basedir}/target/server0 + ${basedir}/target/server1 - - stop0 - - stop - - - ${basedir}/target/classes/activemq/server0 - - - - stop1 - - stop - - - ${basedir}/target/classes/activemq/server1 - - @@ -125,40 +97,7 @@ under the License. clustered-queue ${project.version} - - org.apache.activemq - artemis-core-client - ${project.version} - - - org.apache.activemq - artemis-server - ${project.version} - - - org.apache.activemq - artemis-jms-client - ${project.version} - - - org.apache.activemq - artemis-jms-server - ${project.version} - - - io.netty - netty-all - ${netty.version} - - - org.apache.geronimo.specs - geronimo-jms_2.0_spec - ${geronimo.jms.2.spec.version} - - - false - http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-queue/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredQueueExample.java ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-queue/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredQueueExample.java b/examples/jms/clustered-queue/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredQueueExample.java index 7825c5d..0011865 100644 --- a/examples/jms/clustered-queue/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredQueueExample.java +++ b/examples/jms/clustered-queue/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredQueueExample.java @@ -16,8 +16,6 @@ */ package org.apache.activemq.artemis.jms.example; -import java.util.Hashtable; - import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.MessageConsumer; @@ -26,6 +24,7 @@ import javax.jms.Queue; import javax.jms.Session; import javax.jms.TextMessage; import javax.naming.InitialContext; +import java.util.Hashtable; import org.apache.activemq.artemis.common.example.ActiveMQExample; @@ -56,7 +55,7 @@ public class ClusteredQueueExample extends ActiveMQExample // Step 1. Get an initial context for looking up JNDI from server 0 Hashtable properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[0]); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP1); properties.put("queue.queue/exampleQueue", "exampleQueue"); ic0 = new InitialContext(properties); @@ -69,7 +68,7 @@ public class ClusteredQueueExample extends ActiveMQExample // Step 4. Get an initial context for looking up JNDI from server 1 properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[1]); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP2); ic1 = new InitialContext(properties); // Step 5. Look-up a JMS Connection Factory object from JNDI on server 1 http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-standalone/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-standalone/pom.xml b/examples/jms/clustered-standalone/pom.xml index b78aa01..1f2249d 100644 --- a/examples/jms/clustered-standalone/pom.xml +++ b/examples/jms/clustered-standalone/pom.xml @@ -57,50 +57,35 @@ under the License. artemis-maven-plugin - start0 + create - start + create - ${basedir}/target/classes/activemq/server0 - - - udp-address - ${udp-address} - - + ${basedir}/target/server0 + ${basedir}/target/classes/activemq/server0 - start1 + create2 - start + create - ${basedir}/target/classes/activemq/server1 - true - - - udp-address - ${udp-address} - - + ${basedir}/target/server1 + ${basedir}/target/classes/activemq/server1 + 1 - start2 + create3 - start + create - ${basedir}/target/classes/activemq/server2 - true - - - udp-address - ${udp-address} - - + ${basedir}/target/server2 + ${basedir}/target/classes/activemq/server2 + 2 @@ -111,43 +96,10 @@ under the License. org.apache.activemq.artemis.jms.example.ClusteredStandaloneExample - tcp://localhost:61616 - tcp://localhost:61617 - tcp://localhost:61618 + ${basedir}/target/server0 + ${basedir}/target/server1 + ${basedir}/target/server2 - - - exampleConfigDir - ${basedir}/target/classes/activemq - - - - - - stop0 - - stop - - - ${basedir}/target/classes/activemq/server0 - - - - stop1 - - stop - - - ${basedir}/target/classes/activemq/server1 - - - - stop2 - - stop - - - ${basedir}/target/classes/activemq/server2 @@ -157,36 +109,6 @@ under the License. artemis-jms-clustered-standalone-example ${project.version} - - org.apache.activemq - artemis-core-client - ${project.version} - - - org.apache.activemq - artemis-server - ${project.version} - - - org.apache.activemq - artemis-jms-client - ${project.version} - - - org.apache.activemq - artemis-jms-server - ${project.version} - - - io.netty - netty-all - ${netty.version} - - - org.apache.geronimo.specs - geronimo-jms_2.0_spec - ${geronimo.jms.2.spec.version} - http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-standalone/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredStandaloneExample.java ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-standalone/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredStandaloneExample.java b/examples/jms/clustered-standalone/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredStandaloneExample.java index 5cb4812..9437a8c 100644 --- a/examples/jms/clustered-standalone/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredStandaloneExample.java +++ b/examples/jms/clustered-standalone/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredStandaloneExample.java @@ -16,8 +16,6 @@ */ package org.apache.activemq.artemis.jms.example; -import java.util.Hashtable; - import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.MessageConsumer; @@ -26,6 +24,7 @@ import javax.jms.Session; import javax.jms.TextMessage; import javax.jms.Topic; import javax.naming.InitialContext; +import java.util.Hashtable; import org.apache.activemq.artemis.common.example.ActiveMQExample; @@ -53,18 +52,18 @@ public class ClusteredStandaloneExample extends ActiveMQExample { Hashtable properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[0]); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP1); properties.put("topic.topic/exampleTopic", "exampleTopic"); initialContext0 = new InitialContext(properties); properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[1]); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP2); initialContext1 = new InitialContext(properties); properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[2]); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP3); initialContext2 = new InitialContext(properties); // First we demonstrate a distributed topic. @@ -147,7 +146,7 @@ public class ClusteredStandaloneExample extends ActiveMQExample return false; } - // System.out.println("Received message " + message2.getText()); + System.out.println("Received message " + message2.getText()); } producer.close(); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-static-discovery/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-static-discovery/pom.xml b/examples/jms/clustered-static-discovery/pom.xml index 145c6a6..597bdfb 100644 --- a/examples/jms/clustered-static-discovery/pom.xml +++ b/examples/jms/clustered-static-discovery/pom.xml @@ -57,42 +57,46 @@ under the License. artemis-maven-plugin - start0 + create - start + create - ${basedir}/target/classes/activemq/server0 + ${basedir}/target/server0 + ${basedir}/target/classes/activemq/server0 - start1 + create2 - start + create - ${basedir}/target/classes/activemq/server1 - true + ${basedir}/target/server1 + ${basedir}/target/classes/activemq/server1 + 1 - start2 + create3 - start + create - ${basedir}/target/classes/activemq/server2 - true + ${basedir}/target/server2 + ${basedir}/target/classes/activemq/server2 + 2 - start3 + create4 - start + create - ${basedir}/target/classes/activemq/server3 - true + ${basedir}/target/server3 + ${basedir}/target/classes/activemq/server3 + 3 @@ -103,53 +107,11 @@ under the License. org.apache.activemq.artemis.jms.example.StaticClusteredQueueExample - tcp://localhost:61616 - tcp://localhost:61617 - tcp://localhost:61618 - tcp://localhost:61619 + ${basedir}/target/server0 + ${basedir}/target/server1 + ${basedir}/target/server2 + ${basedir}/target/server3 - - - exampleConfigDir - ${basedir}/target/classes/activemq - - - - - - stop0 - - stop - - - ${basedir}/target/classes/activemq/server0 - - - - stop1 - - stop - - - ${basedir}/target/classes/activemq/server1 - - - - stop2 - - stop - - - ${basedir}/target/classes/activemq/server2 - - - - stop3 - - stop - - - ${basedir}/target/classes/activemq/server3 @@ -159,46 +121,7 @@ under the License. artemis-jms-clustered-static-discovery-example ${project.version} - - org.apache.activemq - artemis-core-client - ${project.version} - - - org.apache.activemq - artemis-server - ${project.version} - - - org.apache.activemq - artemis-jms-client - ${project.version} - - - org.apache.activemq - artemis-jms-server - ${project.version} - - - io.netty - netty-all - ${netty.version} - - - org.apache.geronimo.specs - geronimo-jms_2.0_spec - ${geronimo.jms.2.spec.version} - - - false - - - data.dir - ${basedir}/target/ - - - http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-static-discovery/src/main/java/org/apache/activemq/artemis/jms/example/StaticClusteredQueueExample.java ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-static-discovery/src/main/java/org/apache/activemq/artemis/jms/example/StaticClusteredQueueExample.java b/examples/jms/clustered-static-discovery/src/main/java/org/apache/activemq/artemis/jms/example/StaticClusteredQueueExample.java index 22fc066..c7c9efb 100644 --- a/examples/jms/clustered-static-discovery/src/main/java/org/apache/activemq/artemis/jms/example/StaticClusteredQueueExample.java +++ b/examples/jms/clustered-static-discovery/src/main/java/org/apache/activemq/artemis/jms/example/StaticClusteredQueueExample.java @@ -16,8 +16,6 @@ */ package org.apache.activemq.artemis.jms.example; -import java.util.Hashtable; - import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.MessageConsumer; @@ -26,6 +24,7 @@ import javax.jms.Queue; import javax.jms.Session; import javax.jms.TextMessage; import javax.naming.InitialContext; +import java.util.Hashtable; import org.apache.activemq.artemis.common.example.ActiveMQExample; @@ -60,7 +59,7 @@ public class StaticClusteredQueueExample extends ActiveMQExample // Step 1. Get an initial context for looking up JNDI from server 3 Hashtable properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[3]); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP4); properties.put("queue.queue/exampleQueue", "exampleQueue"); ic0 = new InitialContext(properties); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-static-oneway/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-static-oneway/pom.xml b/examples/jms/clustered-static-oneway/pom.xml index cb8f249..1c44be4 100644 --- a/examples/jms/clustered-static-oneway/pom.xml +++ b/examples/jms/clustered-static-oneway/pom.xml @@ -57,32 +57,33 @@ under the License. artemis-maven-plugin - start0 + create - start + create - ${basedir}/target/classes/activemq/server0 + ${basedir}/target/server0 + ${basedir}/target/classes/activemq/server0 - start1 + create2 - start + create - ${basedir}/target/classes/activemq/server1 - true + ${basedir}/target/server1 + ${basedir}/target/classes/activemq/server1 - start2 + create3 - start + create - ${basedir}/target/classes/activemq/server2 - true + ${basedir}/target/server2 + ${basedir}/target/classes/activemq/server2 @@ -93,43 +94,10 @@ under the License. org.apache.activemq.artemis.jms.example.ClusterStaticOnewayExample - tcp://localhost:61616 - tcp://localhost:61617 - tcp://localhost:61618 + ${basedir}/target/server0 + ${basedir}/target/server1 + ${basedir}/target/server2 - - - exampleConfigDir - ${basedir}/target/classes/activemq - - - - - - stop0 - - stop - - - ${basedir}/target/classes/activemq/server0 - - - - stop1 - - stop - - - ${basedir}/target/classes/activemq/server1 - - - - stop2 - - stop - - - ${basedir}/target/classes/activemq/server2 @@ -139,46 +107,7 @@ under the License. artemis-jms-clustered-static-oneway-example ${project.version} - - org.apache.activemq - artemis-core-client - ${project.version} - - - org.apache.activemq - artemis-server - ${project.version} - - - org.apache.activemq - artemis-jms-client - ${project.version} - - - org.apache.activemq - artemis-jms-server - ${project.version} - - - io.netty - netty-all - ${netty.version} - - - org.apache.geronimo.specs - geronimo-jms_2.0_spec - ${geronimo.jms.2.spec.version} - - - false - - - data.dir - ${basedir}/target/ - - - http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-static-oneway/src/main/java/org/apache/activemq/artemis/jms/example/ClusterStaticOnewayExample.java ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-static-oneway/src/main/java/org/apache/activemq/artemis/jms/example/ClusterStaticOnewayExample.java b/examples/jms/clustered-static-oneway/src/main/java/org/apache/activemq/artemis/jms/example/ClusterStaticOnewayExample.java index 55ffa6a..fd1f4e5 100644 --- a/examples/jms/clustered-static-oneway/src/main/java/org/apache/activemq/artemis/jms/example/ClusterStaticOnewayExample.java +++ b/examples/jms/clustered-static-oneway/src/main/java/org/apache/activemq/artemis/jms/example/ClusterStaticOnewayExample.java @@ -16,8 +16,6 @@ */ package org.apache.activemq.artemis.jms.example; -import java.util.Hashtable; - import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.MessageConsumer; @@ -26,6 +24,7 @@ import javax.jms.Queue; import javax.jms.Session; import javax.jms.TextMessage; import javax.naming.InitialContext; +import java.util.Hashtable; import org.apache.activemq.artemis.common.example.ActiveMQExample; @@ -58,7 +57,7 @@ public class ClusterStaticOnewayExample extends ActiveMQExample // Step 1. Get an initial context for looking up JNDI from server 0 Hashtable properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[0]); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP1); properties.put("queue.queue/exampleQueue", "exampleQueue"); ic0 = new InitialContext(properties); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-topic/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-topic/pom.xml b/examples/jms/clustered-topic/pom.xml index 33617d5..63a7c2b 100644 --- a/examples/jms/clustered-topic/pom.xml +++ b/examples/jms/clustered-topic/pom.xml @@ -57,42 +57,23 @@ under the License. artemis-maven-plugin - start0 + create - start + create - ${basedir}/target/classes/activemq/server0 - - - data.dir - ${basedir}/target/ - - - udp-address - ${udp-address} - - + ${basedir}/target/server0 + ${basedir}/target/classes/activemq/server0 - start1 + create2 - start + create - ${basedir}/target/classes/activemq/server1 - true - - - data.dir - ${basedir}/target/ - - - udp-address - ${udp-address} - - + ${basedir}/target/server1 + ${basedir}/target/classes/activemq/server1 @@ -103,33 +84,9 @@ under the License. org.apache.activemq.artemis.jms.example.ClusteredTopicExample - tcp://localhost:61616 - tcp://localhost:61617 + ${basedir}/target/server0 + ${basedir}/target/server1 - - - exampleConfigDir - ${basedir}/target/classes/activemq - - - - - - stop0 - - stop - - - ${basedir}/target/classes/activemq/server0 - - - - stop1 - - stop - - - ${basedir}/target/classes/activemq/server1 @@ -139,46 +96,7 @@ under the License. artemis-jms-clustered-topic-example ${project.version} - - org.apache.activemq - artemis-core-client - ${project.version} - - - org.apache.activemq - artemis-server - ${project.version} - - - org.apache.activemq - artemis-jms-client - ${project.version} - - - org.apache.activemq - artemis-jms-server - ${project.version} - - - io.netty - netty-all - ${netty.version} - - - org.apache.geronimo.specs - geronimo-jms_2.0_spec - ${geronimo.jms.2.spec.version} - - - false - - - data.dir - ${basedir}/target/ - - - http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/clustered-topic/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredTopicExample.java ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-topic/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredTopicExample.java b/examples/jms/clustered-topic/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredTopicExample.java index 61a7e84..eae9366 100644 --- a/examples/jms/clustered-topic/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredTopicExample.java +++ b/examples/jms/clustered-topic/src/main/java/org/apache/activemq/artemis/jms/example/ClusteredTopicExample.java @@ -16,8 +16,6 @@ */ package org.apache.activemq.artemis.jms.example; -import java.util.Hashtable; - import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.MessageConsumer; @@ -26,6 +24,7 @@ import javax.jms.Session; import javax.jms.TextMessage; import javax.jms.Topic; import javax.naming.InitialContext; +import java.util.Hashtable; import org.apache.activemq.artemis.common.example.ActiveMQExample; @@ -56,7 +55,7 @@ public class ClusteredTopicExample extends ActiveMQExample // Step 1. Get an initial context for looking up JNDI from server 0 Hashtable properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[0]); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP1); properties.put("topic.topic/exampleTopic", "exampleTopic"); ic0 = new InitialContext(properties); @@ -69,7 +68,7 @@ public class ClusteredTopicExample extends ActiveMQExample // Step 4. Get an initial context for looking up JNDI from server 1 properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[1]); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP2); ic1 = new InitialContext(properties); // Step 5. Look-up a JMS Connection Factory object from JNDI on server 1 http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/colocated-failover-scale-down/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/colocated-failover-scale-down/pom.xml b/examples/jms/colocated-failover-scale-down/pom.xml index ac01bed..a0778b0 100644 --- a/examples/jms/colocated-failover-scale-down/pom.xml +++ b/examples/jms/colocated-failover-scale-down/pom.xml @@ -57,34 +57,23 @@ under the License. artemis-maven-plugin - start0 + create - start + create - ${basedir}/target/classes/activemq/server0 - - - udp-address - ${udp-address} - - + ${basedir}/target/server0 + ${basedir}/target/classes/activemq/server0 - start1 + create2 - start + create - ${basedir}/target/classes/activemq/server1 - true - - - udp-address - ${udp-address} - - + ${basedir}/target/server1 + ${basedir}/target/classes/activemq/server1 @@ -95,33 +84,9 @@ under the License. org.apache.activemq.artemis.jms.example.ColocatedFailoverScaleDownExample - tcp://localhost:61616 - tcp://localhost:61617 + ${basedir}/target/server0 + ${basedir}/target/server1 - - - exampleConfigDir - ${basedir}/target/classes/activemq - - - - - - stop0 - - stop - - - ${basedir}/target/classes/activemq/server0 - - - - stop1 - - stop - - - ${basedir}/target/classes/activemq/server1 @@ -131,40 +96,7 @@ under the License. colocated-failover-scale-down ${project.version} - - org.apache.activemq - artemis-core-client - ${project.version} - - - org.apache.activemq - artemis-server - ${project.version} - - - org.apache.activemq - artemis-jms-client - ${project.version} - - - org.apache.activemq - artemis-jms-server - ${project.version} - - - io.netty - netty-all - ${netty.version} - - - org.apache.geronimo.specs - geronimo-jms_2.0_spec - ${geronimo.jms.2.spec.version} - - - false - http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/colocated-failover-scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverScaleDownExample.java ---------------------------------------------------------------------- diff --git a/examples/jms/colocated-failover-scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverScaleDownExample.java b/examples/jms/colocated-failover-scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverScaleDownExample.java index a794b7a..678fbf9 100644 --- a/examples/jms/colocated-failover-scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverScaleDownExample.java +++ b/examples/jms/colocated-failover-scale-down/src/main/java/org/apache/activemq/artemis/jms/example/ColocatedFailoverScaleDownExample.java @@ -16,8 +16,6 @@ */ package org.apache.activemq.artemis.jms.example; -import java.util.Hashtable; - import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.MessageConsumer; @@ -26,6 +24,7 @@ import javax.jms.Queue; import javax.jms.Session; import javax.jms.TextMessage; import javax.naming.InitialContext; +import java.util.Hashtable; import org.apache.activemq.artemis.common.example.ActiveMQExample; @@ -35,7 +34,7 @@ import org.apache.activemq.artemis.common.example.ActiveMQExample; */ public class ColocatedFailoverScaleDownExample extends ActiveMQExample { - public static void main(final String[] args) + public static void main(final String[] args) throws Exception { new ColocatedFailoverScaleDownExample().run(args); } @@ -56,12 +55,12 @@ public class ColocatedFailoverScaleDownExample extends ActiveMQExample // Step 1. Get an initial context for looking up JNDI for both servers Hashtable properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[1]); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP2); initialContext1 = new InitialContext(properties); properties = new Hashtable(); properties.put("java.naming.factory.initial", "org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory"); - properties.put("connectionFactory.ConnectionFactory", args[0] + "?ha=true&retryInterval=1000&retryIntervalMultiplier=1.0&reconnectAttempts=-1"); + properties.put("connectionFactory.ConnectionFactory", DEFAULT_TCP1 + "?ha=true&retryInterval=1000&retryIntervalMultiplier=1.0&reconnectAttempts=-1"); properties.put("queue.queue/exampleQueue", "exampleQueue"); initialContext = new InitialContext(properties); @@ -95,8 +94,8 @@ public class ColocatedFailoverScaleDownExample extends ActiveMQExample // Step 7. Crash server #0, the live server, and wait a little while to make sure // it has really crashed - Thread.sleep(2000); killServer(0); + Thread.sleep(5000); // Step 8. start the connection ready to receive messages http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/colocated-failover-scale-down/src/main/resources/activemq/server0/broker.xml ---------------------------------------------------------------------- diff --git a/examples/jms/colocated-failover-scale-down/src/main/resources/activemq/server0/broker.xml b/examples/jms/colocated-failover-scale-down/src/main/resources/activemq/server0/broker.xml index 9d6d063..8c68c8d 100644 --- a/examples/jms/colocated-failover-scale-down/src/main/resources/activemq/server0/broker.xml +++ b/examples/jms/colocated-failover-scale-down/src/main/resources/activemq/server0/broker.xml @@ -30,13 +30,13 @@ under the License. - target/server0/data/messaging/bindings + ../../server0/data/messaging/bindings - target/server0/data/messaging/journal + ../../server0/data/messaging/journal - target/server0/data/messaging/largemessages + ../../server0/data/messaging/largemessages - target/server0/data/messaging/paging + ../../server0/data/messaging/paging http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/b3af4bb7/examples/jms/colocated-failover-scale-down/src/main/resources/activemq/server1/broker.xml ---------------------------------------------------------------------- diff --git a/examples/jms/colocated-failover-scale-down/src/main/resources/activemq/server1/broker.xml b/examples/jms/colocated-failover-scale-down/src/main/resources/activemq/server1/broker.xml index cda407e..6ad15ef 100644 --- a/examples/jms/colocated-failover-scale-down/src/main/resources/activemq/server1/broker.xml +++ b/examples/jms/colocated-failover-scale-down/src/main/resources/activemq/server1/broker.xml @@ -30,13 +30,13 @@ under the License. - target/server1/data/messaging/bindings + ../../server1/data/messaging/bindings - target/server1/data/messaging/journal + ../../server1/data/messaging/journal - target/server1/data/messaging/largemessages + ../../server1/data/messaging/largemessages - target/server1/data/messaging/paging + ../../server1/data/messaging/paging