activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [4/6] activemq-artemis git commit: Fixing clustered examples on MacOS (and possibly other envs)
Date Wed, 02 Sep 2015 14:23:11 GMT
Fixing clustered examples on MacOS (and possibly other envs)


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/fa15b29d
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/fa15b29d
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/fa15b29d

Branch: refs/heads/master
Commit: fa15b29dfc3976b7d141875726e1d5c827a016d7
Parents: 355b65a
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Tue Sep 1 23:26:54 2015 -0400
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Wed Sep 2 09:32:13 2015 -0400

----------------------------------------------------------------------
 examples/README.md                                      |  7 +++++++
 .../clustered/client-side-load-balancing/pom.xml        |  8 ++++++++
 .../clustered/clustered-durable-subscription/pom.xml    |  4 ++++
 examples/features/clustered/clustered-grouping/pom.xml  |  6 ++++++
 examples/features/clustered/clustered-jgroups/pom.xml   |  4 ++++
 examples/features/clustered/clustered-queue/pom.xml     |  4 ++++
 .../clustered/clustered-static-discovery/pom.xml        |  6 ++++++
 .../features/clustered/clustered-static-oneway/pom.xml  |  6 ++++++
 examples/features/clustered/clustered-topic/pom.xml     |  4 ++++
 .../clustered/queue-message-redistribution/pom.xml      |  4 ++++
 examples/features/clustered/symmetric-cluster/pom.xml   | 12 ++++++------
 11 files changed, 59 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/README.md
----------------------------------------------------------------------
diff --git a/examples/README.md b/examples/README.md
index e9d9e36..3d0fdd9 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -22,6 +22,13 @@ directory but before you do you will need to up the memory used by running:
 ```
 export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
 ```
+
+if you are running a Mac OS, you may want to add this to run the clustered examples:
+
+```
+export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true"
+```
+
 ### Recreating the examples
 
 If you are trying to copy the examples somewhere else and modifying them. Consider asking
Maven to explicitly list all the dependencies:

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/features/clustered/client-side-load-balancing/pom.xml
----------------------------------------------------------------------
diff --git a/examples/features/clustered/client-side-load-balancing/pom.xml b/examples/features/clustered/client-side-load-balancing/pom.xml
index c2993b2..a9b092c 100644
--- a/examples/features/clustered/client-side-load-balancing/pom.xml
+++ b/examples/features/clustered/client-side-load-balancing/pom.xml
@@ -59,6 +59,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server0</instance>
                      <clustered>true</clustered>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -71,6 +73,8 @@ under the License.
                      <instance>${basedir}/target/server1</instance>
                      <clustered>true</clustered>
                      <portOffset>1</portOffset>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -83,6 +87,8 @@ under the License.
                      <instance>${basedir}/target/server2</instance>
                      <clustered>true</clustered>
                      <portOffset>2</portOffset>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -139,6 +145,8 @@ under the License.
                      <goal>runClient</goal>
                   </goals>
                   <configuration>
+                     <!-- you may have to set export MAVEN_OPTS="-Djava.net.preferIPv4Stack=true"
+                          if you are on MacOS for instance -->
                      <clientClass>org.apache.activemq.artemis.jms.example.ClientSideLoadBalancingExample</clientClass>
                   </configuration>
                </execution>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/features/clustered/clustered-durable-subscription/pom.xml
----------------------------------------------------------------------
diff --git a/examples/features/clustered/clustered-durable-subscription/pom.xml b/examples/features/clustered/clustered-durable-subscription/pom.xml
index 8f28710..d6fbb98 100644
--- a/examples/features/clustered/clustered-durable-subscription/pom.xml
+++ b/examples/features/clustered/clustered-durable-subscription/pom.xml
@@ -60,6 +60,8 @@ under the License.
                      <clustered>true</clustered>
                      <instance>${basedir}/target/server0</instance>
                      <configuration>${basedir}/target/classes/activemq/server0</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -73,6 +75,8 @@ under the License.
                      <instance>${basedir}/target/server1</instance>
                      <configuration>${basedir}/target/classes/activemq/server1</configuration>
                      <portOffset>1</portOffset>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/features/clustered/clustered-grouping/pom.xml
----------------------------------------------------------------------
diff --git a/examples/features/clustered/clustered-grouping/pom.xml b/examples/features/clustered/clustered-grouping/pom.xml
index b41a2ad..a625894 100644
--- a/examples/features/clustered/clustered-grouping/pom.xml
+++ b/examples/features/clustered/clustered-grouping/pom.xml
@@ -59,6 +59,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server0</instance>
                      <configuration>${basedir}/target/classes/activemq/server0</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -70,6 +72,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server1</instance>
                      <configuration>${basedir}/target/classes/activemq/server1</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -81,6 +85,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server2</instance>
                      <configuration>${basedir}/target/classes/activemq/server2</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/features/clustered/clustered-jgroups/pom.xml
----------------------------------------------------------------------
diff --git a/examples/features/clustered/clustered-jgroups/pom.xml b/examples/features/clustered/clustered-jgroups/pom.xml
index 30f6a20..5e22e0c 100644
--- a/examples/features/clustered/clustered-jgroups/pom.xml
+++ b/examples/features/clustered/clustered-jgroups/pom.xml
@@ -63,6 +63,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server0</instance>
                      <configuration>${basedir}/target/classes/activemq/server0</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -78,6 +80,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server1</instance>
                      <configuration>${basedir}/target/classes/activemq/server1</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/features/clustered/clustered-queue/pom.xml
----------------------------------------------------------------------
diff --git a/examples/features/clustered/clustered-queue/pom.xml b/examples/features/clustered/clustered-queue/pom.xml
index 78a8c8b..2f876be 100644
--- a/examples/features/clustered/clustered-queue/pom.xml
+++ b/examples/features/clustered/clustered-queue/pom.xml
@@ -59,6 +59,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server0</instance>
                      <configuration>${basedir}/target/classes/activemq/server0</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -70,6 +72,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server1</instance>
                      <configuration>${basedir}/target/classes/activemq/server1</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/features/clustered/clustered-static-discovery/pom.xml
----------------------------------------------------------------------
diff --git a/examples/features/clustered/clustered-static-discovery/pom.xml b/examples/features/clustered/clustered-static-discovery/pom.xml
index b3ce3c1..860a717 100644
--- a/examples/features/clustered/clustered-static-discovery/pom.xml
+++ b/examples/features/clustered/clustered-static-discovery/pom.xml
@@ -64,6 +64,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server0</instance>
                      <configuration>${basedir}/target/classes/activemq/server0</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -75,6 +77,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server1</instance>
                      <configuration>${basedir}/target/classes/activemq/server1</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -86,6 +90,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server2</instance>
                      <configuration>${basedir}/target/classes/activemq/server2</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/features/clustered/clustered-static-oneway/pom.xml
----------------------------------------------------------------------
diff --git a/examples/features/clustered/clustered-static-oneway/pom.xml b/examples/features/clustered/clustered-static-oneway/pom.xml
index 18a303c..a787b0a 100644
--- a/examples/features/clustered/clustered-static-oneway/pom.xml
+++ b/examples/features/clustered/clustered-static-oneway/pom.xml
@@ -64,6 +64,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server0</instance>
                      <configuration>${basedir}/target/classes/activemq/server0</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -75,6 +77,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server1</instance>
                      <configuration>${basedir}/target/classes/activemq/server1</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -86,6 +90,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server2</instance>
                      <configuration>${basedir}/target/classes/activemq/server2</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/features/clustered/clustered-topic/pom.xml
----------------------------------------------------------------------
diff --git a/examples/features/clustered/clustered-topic/pom.xml b/examples/features/clustered/clustered-topic/pom.xml
index bff7c70..e2bc358 100644
--- a/examples/features/clustered/clustered-topic/pom.xml
+++ b/examples/features/clustered/clustered-topic/pom.xml
@@ -59,6 +59,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server0</instance>
                      <configuration>${basedir}/target/classes/activemq/server0</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -70,6 +72,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server1</instance>
                      <configuration>${basedir}/target/classes/activemq/server1</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/features/clustered/queue-message-redistribution/pom.xml
----------------------------------------------------------------------
diff --git a/examples/features/clustered/queue-message-redistribution/pom.xml b/examples/features/clustered/queue-message-redistribution/pom.xml
index 4816ad0..4f01f07 100644
--- a/examples/features/clustered/queue-message-redistribution/pom.xml
+++ b/examples/features/clustered/queue-message-redistribution/pom.xml
@@ -59,6 +59,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server0</instance>
                      <configuration>${basedir}/target/classes/activemq/server0</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -70,6 +72,8 @@ under the License.
                      <ignore>${noServer}</ignore>
                      <instance>${basedir}/target/server1</instance>
                      <configuration>${basedir}/target/classes/activemq/server1</configuration>
+                     <!-- this makes it easier in certain envs -->
+                     <javaOptions>-Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/fa15b29d/examples/features/clustered/symmetric-cluster/pom.xml
----------------------------------------------------------------------
diff --git a/examples/features/clustered/symmetric-cluster/pom.xml b/examples/features/clustered/symmetric-cluster/pom.xml
index 5be9c1d..e0b8c20 100644
--- a/examples/features/clustered/symmetric-cluster/pom.xml
+++ b/examples/features/clustered/symmetric-cluster/pom.xml
@@ -59,7 +59,7 @@ under the License.
                      <ignore>${noSever}</ignore>
                      <instance>${basedir}/target/server0</instance>
                      <configuration>${basedir}/target/classes/activemq/server0</configuration>
-                     <javaOptions>-Dudp-address=${udp-address}</javaOptions>
+                     <javaOptions>-Dudp-address=${udp-address} -Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -71,7 +71,7 @@ under the License.
                      <ignore>${noSever}</ignore>
                      <instance>${basedir}/target/server1</instance>
                      <configuration>${basedir}/target/classes/activemq/server1</configuration>
-                     <javaOptions>-Dudp-address=${udp-address}</javaOptions>
+                     <javaOptions>-Dudp-address=${udp-address} -Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -83,7 +83,7 @@ under the License.
                      <ignore>${noSever}</ignore>
                      <instance>${basedir}/target/server2</instance>
                      <configuration>${basedir}/target/classes/activemq/server2</configuration>
-                     <javaOptions>-Dudp-address=${udp-address}</javaOptions>
+                     <javaOptions>-Dudp-address=${udp-address} -Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -95,7 +95,7 @@ under the License.
                      <ignore>${noSever}</ignore>
                      <instance>${basedir}/target/server3</instance>
                      <configuration>${basedir}/target/classes/activemq/server3</configuration>
-                     <javaOptions>-Dudp-address=${udp-address}</javaOptions>
+                     <javaOptions>-Dudp-address=${udp-address} -Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -107,7 +107,7 @@ under the License.
                      <ignore>${noSever}</ignore>
                      <instance>${basedir}/target/server4</instance>
                      <configuration>${basedir}/target/classes/activemq/server4</configuration>
-                     <javaOptions>-Dudp-address=${udp-address}</javaOptions>
+                     <javaOptions>-Dudp-address=${udp-address} -Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>
@@ -119,7 +119,7 @@ under the License.
                      <ignore>${noSever}</ignore>
                      <instance>${basedir}/target/server5</instance>
                      <configuration>${basedir}/target/classes/activemq/server5</configuration>
-                     <javaOptions>-Dudp-address=${udp-address}</javaOptions>
+                     <javaOptions>-Dudp-address=${udp-address} -Djava.net.preferIPv4Stack=true</javaOptions>
                   </configuration>
                </execution>
                <execution>


Mime
View raw message