diff --git a/examples/features/ha/application-layer-failover/pom.xml b/examples/features/ha/application-layer-failover/pom.xml
index c0d9b843a0..c36aed1b6f 100644
--- a/examples/features/ha/application-layer-failover/pom.xml
+++ b/examples/features/ha/application-layer-failover/pom.xml
@@ -61,6 +61,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
@@ -70,6 +72,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
1
diff --git a/examples/features/ha/client-side-failoverlistener/pom.xml b/examples/features/ha/client-side-failoverlistener/pom.xml
index 03101acddc..82da75913e 100644
--- a/examples/features/ha/client-side-failoverlistener/pom.xml
+++ b/examples/features/ha/client-side-failoverlistener/pom.xml
@@ -61,6 +61,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
../shared
true
@@ -74,6 +76,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
../shared
true
diff --git a/examples/features/ha/colocated-failover-scale-down/pom.xml b/examples/features/ha/colocated-failover-scale-down/pom.xml
index 9213d1853d..2ff87d863b 100644
--- a/examples/features/ha/colocated-failover-scale-down/pom.xml
+++ b/examples/features/ha/colocated-failover-scale-down/pom.xml
@@ -60,6 +60,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
${basedir}/target/classes/activemq/server0
@@ -70,6 +72,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
${basedir}/target/classes/activemq/server1
diff --git a/examples/features/ha/colocated-failover/pom.xml b/examples/features/ha/colocated-failover/pom.xml
index d15a948f78..b154d4179e 100644
--- a/examples/features/ha/colocated-failover/pom.xml
+++ b/examples/features/ha/colocated-failover/pom.xml
@@ -61,6 +61,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
${basedir}/target/classes/activemq/server0
@@ -71,6 +73,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
${basedir}/target/classes/activemq/server1
diff --git a/examples/features/ha/ha-policy-autobackup/pom.xml b/examples/features/ha/ha-policy-autobackup/pom.xml
index 9322e2af7e..1680044c9a 100644
--- a/examples/features/ha/ha-policy-autobackup/pom.xml
+++ b/examples/features/ha/ha-policy-autobackup/pom.xml
@@ -61,6 +61,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
${basedir}/target/classes/activemq/server0
@@ -71,6 +73,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
${basedir}/target/classes/activemq/server1
diff --git a/examples/features/ha/multiple-failover-failback/pom.xml b/examples/features/ha/multiple-failover-failback/pom.xml
index fd04228ce6..b1bed86b91 100644
--- a/examples/features/ha/multiple-failover-failback/pom.xml
+++ b/examples/features/ha/multiple-failover-failback/pom.xml
@@ -60,6 +60,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
true
false
@@ -73,6 +75,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
true
true
@@ -86,6 +90,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server2
true
true
diff --git a/examples/features/ha/multiple-failover/pom.xml b/examples/features/ha/multiple-failover/pom.xml
index a9a0b0381f..72f73a7802 100644
--- a/examples/features/ha/multiple-failover/pom.xml
+++ b/examples/features/ha/multiple-failover/pom.xml
@@ -60,6 +60,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
true
false
@@ -73,6 +75,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
true
true
@@ -86,6 +90,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server2
true
true
diff --git a/examples/features/ha/non-transaction-failover/pom.xml b/examples/features/ha/non-transaction-failover/pom.xml
index 1b5a600a81..1476106b22 100644
--- a/examples/features/ha/non-transaction-failover/pom.xml
+++ b/examples/features/ha/non-transaction-failover/pom.xml
@@ -61,6 +61,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
true
false
@@ -74,6 +76,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
true
true
diff --git a/examples/features/ha/replicated-failback-static/pom.xml b/examples/features/ha/replicated-failback-static/pom.xml
index 91bb01ecb4..7c54c145a0 100644
--- a/examples/features/ha/replicated-failback-static/pom.xml
+++ b/examples/features/ha/replicated-failback-static/pom.xml
@@ -61,6 +61,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
${basedir}/target/classes/activemq/server0
-Dudp-address=${udp-address}
@@ -72,6 +74,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
${basedir}/target/classes/activemq/server1
-Dudp-address=${udp-address}
diff --git a/examples/features/ha/replicated-failback/pom.xml b/examples/features/ha/replicated-failback/pom.xml
index d996718a71..bed38dd539 100644
--- a/examples/features/ha/replicated-failback/pom.xml
+++ b/examples/features/ha/replicated-failback/pom.xml
@@ -60,6 +60,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
${basedir}/target/classes/activemq/server0
-Dudp-address=${udp-address}
@@ -71,6 +73,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
${basedir}/target/classes/activemq/server1
-Dudp-address=${udp-address}
diff --git a/examples/features/ha/replicated-multiple-failover/pom.xml b/examples/features/ha/replicated-multiple-failover/pom.xml
index 23dcfd7d82..c64b1d71cb 100644
--- a/examples/features/ha/replicated-multiple-failover/pom.xml
+++ b/examples/features/ha/replicated-multiple-failover/pom.xml
@@ -61,6 +61,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server0
${basedir}/target/classes/activemq/server0
-Dudp-address=${udp-address}
@@ -72,6 +74,8 @@ under the License.
create
+
+ -Djava.net.preferIPv4Stack=true
${basedir}/target/server1
${basedir}/target/classes/activemq/server1
-Dudp-address=${udp-address}
diff --git a/examples/features/ha/replicated-transaction-failover/pom.xml b/examples/features/ha/replicated-transaction-failover/pom.xml
index 4c1839e3c2..1651545a08 100644
--- a/examples/features/ha/replicated-transaction-failover/pom.xml
+++ b/examples/features/ha/replicated-transaction-failover/pom.xml
@@ -62,7 +62,7 @@ under the License.
${basedir}/target/server0
${basedir}/target/classes/activemq/server0
- -Dudp-address=${udp-address}
+ -Dudp-address=${udp-address} -Djava.net.preferIPv4Stack=true
@@ -73,7 +73,7 @@ under the License.
${basedir}/target/server1
${basedir}/target/classes/activemq/server1
- -Dudp-address=${udp-address}
+ -Dudp-address=${udp-address} -Djava.net.preferIPv4Stack=true
diff --git a/examples/features/ha/scale-down/pom.xml b/examples/features/ha/scale-down/pom.xml
index e7224138ab..6cce733a81 100644
--- a/examples/features/ha/scale-down/pom.xml
+++ b/examples/features/ha/scale-down/pom.xml
@@ -63,7 +63,7 @@ under the License.
${basedir}/target/server0
${basedir}/target/classes/activemq/server0
- -Dudp-address=${udp-address}
+ -Dudp-address=${udp-address} -Djava.net.preferIPv4Stack=true
@@ -74,7 +74,7 @@ under the License.
${basedir}/target/server1
${basedir}/target/classes/activemq/server1
- -Dudp-address=${udp-address}
+ -Dudp-address=${udp-address} -Djava.net.preferIPv4Stack=true
diff --git a/examples/features/ha/stop-server-failover/pom.xml b/examples/features/ha/stop-server-failover/pom.xml
index 7fb647c47d..b18fdc9363 100644
--- a/examples/features/ha/stop-server-failover/pom.xml
+++ b/examples/features/ha/stop-server-failover/pom.xml
@@ -56,6 +56,7 @@ under the License.
create
+ -Djava.net.preferIPv4Stack=true
${noServer}
${basedir}/target/server0
true
@@ -70,6 +71,7 @@ under the License.
create
+ -Djava.net.preferIPv4Stack=true
${noServer}
${basedir}/target/server1
true