http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-queue/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-queue/pom.xml b/examples/jms/clustered-queue/pom.xml index d6d0aa3..fb827f6 100644 --- a/examples/jms/clustered-queue/pom.xml +++ b/examples/jms/clustered-queue/pom.xml @@ -44,117 +44,122 @@ under the License. </dependency> </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-maven-plugin</artifactId> - <executions> - <execution> - <id>start0</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - <systemProperties> - <property> - <name>udp-address</name> - <value>${udp-address}</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>start1</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> - <fork>true</fork> - <systemProperties> - <property> - <name>udp-address</name> - <value>${udp-address}</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>runClient</id> - <goals> - <goal>runClient</goal> - </goals> - <configuration> - <clientClass>org.apache.activemq.jms.example.ClusteredQueueExample</clientClass> - <args> - <param>tcp://localhost:61616</param> - <param>tcp://localhost:61617</param> - </args> - </configuration> - </execution> - <execution> - <id>stop0</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - </configuration> - </execution> - <execution> - <id>stop1</id> - <goals> - <goal>stop</goal> - </goals> + <profiles> + <profile> + <id>example</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-maven-plugin</artifactId> + <executions> + <execution> + <id>start0</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + <systemProperties> + <property> + <name>udp-address</name> + <value>${udp-address}</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>start1</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + <fork>true</fork> + <systemProperties> + <property> + <name>udp-address</name> + <value>${udp-address}</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>runClient</id> + <goals> + <goal>runClient</goal> + </goals> + <configuration> + <clientClass>org.apache.activemq.jms.example.ClusteredQueueExample</clientClass> + <args> + <param>tcp://localhost:61616</param> + <param>tcp://localhost:61617</param> + </args> + </configuration> + </execution> + <execution> + <id>stop0</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + </configuration> + </execution> + <execution> + <id>stop1</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + </configuration> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>org.apache.activemq.examples.jms</groupId> + <artifactId>clustered-queue</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-core-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-all</artifactId> + <version>${netty.version}</version> + </dependency> + <dependency> + <groupId>org.apache.geronimo.specs</groupId> + <artifactId>geronimo-jms_2.0_spec</artifactId> + <version>${geronimo.jms.2.spec.version}</version> + </dependency> + </dependencies> <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + <waitOnStart>false</waitOnStart> </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.activemq.examples.jms</groupId> - <artifactId>clustered-queue</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-core-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>io.netty</groupId> - <artifactId>netty-all</artifactId> - <version>${netty.version}</version> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jms_2.0_spec</artifactId> - <version>${geronimo.jms.2.spec.version}</version> - </dependency> - </dependencies> - <configuration> - <waitOnStart>false</waitOnStart> - </configuration> - </plugin> - </plugins> - </build> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>
http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-queue/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-queue/readme.html b/examples/jms/clustered-queue/readme.html index 882634b..2c70d80 100644 --- a/examples/jms/clustered-queue/readme.html +++ b/examples/jms/clustered-queue/readme.html @@ -51,7 +51,7 @@ under the License. <p>For more information on ActiveMQ load balancing, and clustering in general, please see the clustering section of the user manual.</p> <h2>Example step-by-step</h2> - <p><i>To run the example, simply type <code>mvn verify</code> from this directory</i></p> + <p><i>To run the example, simply type <code>mvn verify -Pexample</code> from this directory</i></p> <ol> <li> Get an initial context for looking up JNDI from server 0.</li> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-standalone/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-standalone/pom.xml b/examples/jms/clustered-standalone/pom.xml index 6542869..35e3798 100644 --- a/examples/jms/clustered-standalone/pom.xml +++ b/examples/jms/clustered-standalone/pom.xml @@ -44,146 +44,151 @@ under the License. </dependency> </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-maven-plugin</artifactId> - <executions> - <execution> - <id>start0</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - <systemProperties> - <property> - <name>udp-address</name> - <value>${udp-address}</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>start1</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> - <fork>true</fork> - <systemProperties> - <property> - <name>udp-address</name> - <value>${udp-address}</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>start2</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> - <fork>true</fork> - <systemProperties> - <property> - <name>udp-address</name> - <value>${udp-address}</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>runClient</id> - <goals> - <goal>runClient</goal> - </goals> - <configuration> - <clientClass>org.apache.activemq.jms.example.ClusteredStandaloneExample</clientClass> - <args> - <param>tcp://localhost:61616</param> - <param>tcp://localhost:61617</param> - <param>tcp://localhost:61618</param> - </args> - <systemProperties> - <property> - <name>exampleConfigDir</name> - <value>${basedir}/target/classes/activemq</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>stop0</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - </configuration> - </execution> - <execution> - <id>stop1</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> - </configuration> - </execution> - <execution> - <id>stop2</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.activemq.examples.jms</groupId> - <artifactId>activemq-jms-clustered-standalone-example</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> + <profiles> + <profile> + <id>example</id> + <build> + <plugins> + <plugin> <groupId>org.apache.activemq</groupId> - <artifactId>activemq-core-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>io.netty</groupId> - <artifactId>netty-all</artifactId> - <version>${netty.version}</version> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jms_2.0_spec</artifactId> - <version>${geronimo.jms.2.spec.version}</version> - </dependency> - </dependencies> - </plugin> - </plugins> - </build> + <artifactId>activemq-maven-plugin</artifactId> + <executions> + <execution> + <id>start0</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + <systemProperties> + <property> + <name>udp-address</name> + <value>${udp-address}</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>start1</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + <fork>true</fork> + <systemProperties> + <property> + <name>udp-address</name> + <value>${udp-address}</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>start2</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> + <fork>true</fork> + <systemProperties> + <property> + <name>udp-address</name> + <value>${udp-address}</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>runClient</id> + <goals> + <goal>runClient</goal> + </goals> + <configuration> + <clientClass>org.apache.activemq.jms.example.ClusteredStandaloneExample</clientClass> + <args> + <param>tcp://localhost:61616</param> + <param>tcp://localhost:61617</param> + <param>tcp://localhost:61618</param> + </args> + <systemProperties> + <property> + <name>exampleConfigDir</name> + <value>${basedir}/target/classes/activemq</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>stop0</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + </configuration> + </execution> + <execution> + <id>stop1</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + </configuration> + </execution> + <execution> + <id>stop2</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> + </configuration> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>org.apache.activemq.examples.jms</groupId> + <artifactId>activemq-jms-clustered-standalone-example</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-core-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-all</artifactId> + <version>${netty.version}</version> + </dependency> + <dependency> + <groupId>org.apache.geronimo.specs</groupId> + <artifactId>geronimo-jms_2.0_spec</artifactId> + <version>${geronimo.jms.2.spec.version}</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-standalone/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-standalone/readme.html b/examples/jms/clustered-standalone/readme.html index 2b439dc..b72aa77 100644 --- a/examples/jms/clustered-standalone/readme.html +++ b/examples/jms/clustered-standalone/readme.html @@ -43,7 +43,7 @@ under the License. </code> </pre> <h2>Example step-by-step</h2> - <p><i>To run the example, simply type <code>mvn verify</code> from this directory</i>. This will + <p><i>To run the example, simply type <code>mvn verify -Pexample</code> from this directory</i>. This will automatically start the 3 cluster nodes, each with its specific configuration.</p> <p>To start the tests <em>manually</em>, the following steps are:</p> <ul> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/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 48c0d4d..8c8bffa 100644 --- a/examples/jms/clustered-static-discovery/pom.xml +++ b/examples/jms/clustered-static-discovery/pom.xml @@ -44,157 +44,162 @@ under the License. </dependency> </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-maven-plugin</artifactId> - <executions> - <execution> - <id>start0</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - </configuration> - </execution> - <execution> - <id>start1</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> - <fork>true</fork> - </configuration> - </execution> - <execution> - <id>start2</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> - <fork>true</fork> - </configuration> - </execution> - <execution> - <id>start3</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server3</configurationDir> - <fork>true</fork> - </configuration> - </execution> - <execution> - <id>runClient</id> - <goals> - <goal>runClient</goal> - </goals> + <profiles> + <profile> + <id>example</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-maven-plugin</artifactId> + <executions> + <execution> + <id>start0</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + </configuration> + </execution> + <execution> + <id>start1</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + <fork>true</fork> + </configuration> + </execution> + <execution> + <id>start2</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> + <fork>true</fork> + </configuration> + </execution> + <execution> + <id>start3</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server3</configurationDir> + <fork>true</fork> + </configuration> + </execution> + <execution> + <id>runClient</id> + <goals> + <goal>runClient</goal> + </goals> + <configuration> + <clientClass>org.apache.activemq.jms.example.StaticClusteredQueueExample</clientClass> + <args> + <param>tcp://localhost:61616</param> + <param>tcp://localhost:61617</param> + <param>tcp://localhost:61618</param> + <param>tcp://localhost:61619</param> + </args> + <systemProperties> + <property> + <name>exampleConfigDir</name> + <value>${basedir}/target/classes/activemq</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>stop0</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + </configuration> + </execution> + <execution> + <id>stop1</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + </configuration> + </execution> + <execution> + <id>stop2</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> + </configuration> + </execution> + <execution> + <id>stop3</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server3</configurationDir> + </configuration> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>org.apache.activemq.examples.jms</groupId> + <artifactId>activemq-jms-clustered-static-discovery-example</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-core-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-all</artifactId> + <version>${netty.version}</version> + </dependency> + <dependency> + <groupId>org.apache.geronimo.specs</groupId> + <artifactId>geronimo-jms_2.0_spec</artifactId> + <version>${geronimo.jms.2.spec.version}</version> + </dependency> + </dependencies> <configuration> - <clientClass>org.apache.activemq.jms.example.StaticClusteredQueueExample</clientClass> - <args> - <param>tcp://localhost:61616</param> - <param>tcp://localhost:61617</param> - <param>tcp://localhost:61618</param> - <param>tcp://localhost:61619</param> - </args> + <waitOnStart>false</waitOnStart> <systemProperties> <property> - <name>exampleConfigDir</name> - <value>${basedir}/target/classes/activemq</value> + <name>data.dir</name> + <value>${basedir}/target/</value> </property> </systemProperties> </configuration> - </execution> - <execution> - <id>stop0</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - </configuration> - </execution> - <execution> - <id>stop1</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> - </configuration> - </execution> - <execution> - <id>stop2</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> - </configuration> - </execution> - <execution> - <id>stop3</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server3</configurationDir> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.activemq.examples.jms</groupId> - <artifactId>activemq-jms-clustered-static-discovery-example</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-core-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>io.netty</groupId> - <artifactId>netty-all</artifactId> - <version>${netty.version}</version> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jms_2.0_spec</artifactId> - <version>${geronimo.jms.2.spec.version}</version> - </dependency> - </dependencies> - <configuration> - <waitOnStart>false</waitOnStart> - <systemProperties> - <property> - <name>data.dir</name> - <value>${basedir}/target/</value> - </property> - </systemProperties> - </configuration> - </plugin> - </plugins> - </build> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-static-discovery/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-static-discovery/readme.html b/examples/jms/clustered-static-discovery/readme.html index 21a2ec2..8a10f8c 100644 --- a/examples/jms/clustered-static-discovery/readme.html +++ b/examples/jms/clustered-static-discovery/readme.html @@ -54,7 +54,7 @@ under the License. <p>For more information on ActiveMQ load balancing, and clustering in general, please see the clustering section of the user manual.</p> <h2>Example step-by-step</h2> - <p><i>To run the example, simply type <code>mvn verify</code> from this directory</i></p> + <p><i>To run the example, simply type <code>mvn verify -Pexample</code> from this directory</i></p> <ol> <li> Get an initial context for looking up JNDI from server 0.</li> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/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 ec9af39..12bf754 100644 --- a/examples/jms/clustered-static-oneway/pom.xml +++ b/examples/jms/clustered-static-oneway/pom.xml @@ -44,137 +44,142 @@ under the License. </dependency> </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-maven-plugin</artifactId> - <executions> - <execution> - <id>start0</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - </configuration> - </execution> - <execution> - <id>start1</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> - <fork>true</fork> - </configuration> - </execution> - <execution> - <id>start2</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> - <fork>true</fork> - </configuration> - </execution> - <execution> - <id>runClient</id> - <goals> - <goal>runClient</goal> - </goals> + <profiles> + <profile> + <id>example</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-maven-plugin</artifactId> + <executions> + <execution> + <id>start0</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + </configuration> + </execution> + <execution> + <id>start1</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + <fork>true</fork> + </configuration> + </execution> + <execution> + <id>start2</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> + <fork>true</fork> + </configuration> + </execution> + <execution> + <id>runClient</id> + <goals> + <goal>runClient</goal> + </goals> + <configuration> + <clientClass>org.apache.activemq.jms.example.ClusterStaticOnewayExample</clientClass> + <args> + <param>tcp://localhost:61616</param> + <param>tcp://localhost:61617</param> + <param>tcp://localhost:61618</param> + </args> + <systemProperties> + <property> + <name>exampleConfigDir</name> + <value>${basedir}/target/classes/activemq</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>stop0</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + </configuration> + </execution> + <execution> + <id>stop1</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + </configuration> + </execution> + <execution> + <id>stop2</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> + </configuration> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>org.apache.activemq.examples.jms</groupId> + <artifactId>activemq-jms-clustered-static-oneway-example</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-core-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-all</artifactId> + <version>${netty.version}</version> + </dependency> + <dependency> + <groupId>org.apache.geronimo.specs</groupId> + <artifactId>geronimo-jms_2.0_spec</artifactId> + <version>${geronimo.jms.2.spec.version}</version> + </dependency> + </dependencies> <configuration> - <clientClass>org.apache.activemq.jms.example.ClusterStaticOnewayExample</clientClass> - <args> - <param>tcp://localhost:61616</param> - <param>tcp://localhost:61617</param> - <param>tcp://localhost:61618</param> - </args> + <waitOnStart>false</waitOnStart> <systemProperties> <property> - <name>exampleConfigDir</name> - <value>${basedir}/target/classes/activemq</value> + <name>data.dir</name> + <value>${basedir}/target/</value> </property> </systemProperties> </configuration> - </execution> - <execution> - <id>stop0</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - </configuration> - </execution> - <execution> - <id>stop1</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> - </configuration> - </execution> - <execution> - <id>stop2</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server2</configurationDir> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.activemq.examples.jms</groupId> - <artifactId>activemq-jms-clustered-static-oneway-example</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-core-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>io.netty</groupId> - <artifactId>netty-all</artifactId> - <version>${netty.version}</version> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jms_2.0_spec</artifactId> - <version>${geronimo.jms.2.spec.version}</version> - </dependency> - </dependencies> - <configuration> - <waitOnStart>false</waitOnStart> - <systemProperties> - <property> - <name>data.dir</name> - <value>${basedir}/target/</value> - </property> - </systemProperties> - </configuration> - </plugin> - </plugins> - </build> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-static-oneway/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-static-oneway/readme.html b/examples/jms/clustered-static-oneway/readme.html index 83d773a..aeff916 100644 --- a/examples/jms/clustered-static-oneway/readme.html +++ b/examples/jms/clustered-static-oneway/readme.html @@ -60,7 +60,7 @@ under the License. <p>For more information on ActiveMQ load balancing, and clustering in general, please see the clustering section of the user manual.</p> <h2>Example step-by-step</h2> - <p><i>To run the example, simply type <code>mvn verify</code> from this directory</i></p> + <p><i>To run the example, simply type <code>mvn verify -Pexample</code> from this directory</i></p> <ol> <li> Get an initial context for looking up JNDI from server 0.</li> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-topic/pom.xml ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-topic/pom.xml b/examples/jms/clustered-topic/pom.xml index f28b58a..9ab1946 100644 --- a/examples/jms/clustered-topic/pom.xml +++ b/examples/jms/clustered-topic/pom.xml @@ -44,137 +44,142 @@ under the License. </dependency> </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-maven-plugin</artifactId> - <executions> - <execution> - <id>start0</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - <systemProperties> - <property> - <name>data.dir</name> - <value>${basedir}/target/</value> - </property> - <property> - <name>udp-address</name> - <value>${udp-address}</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>start1</id> - <goals> - <goal>start</goal> - </goals> + <profiles> + <profile> + <id>example</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-maven-plugin</artifactId> + <executions> + <execution> + <id>start0</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + <systemProperties> + <property> + <name>data.dir</name> + <value>${basedir}/target/</value> + </property> + <property> + <name>udp-address</name> + <value>${udp-address}</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>start1</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + <fork>true</fork> + <systemProperties> + <property> + <name>data.dir</name> + <value>${basedir}/target/</value> + </property> + <property> + <name>udp-address</name> + <value>${udp-address}</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>runClient</id> + <goals> + <goal>runClient</goal> + </goals> + <configuration> + <clientClass>org.apache.activemq.jms.example.ClusteredTopicExample</clientClass> + <args> + <param>tcp://localhost:61616</param> + <param>tcp://localhost:61617</param> + </args> + <systemProperties> + <property> + <name>exampleConfigDir</name> + <value>${basedir}/target/classes/activemq</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>stop0</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + </configuration> + </execution> + <execution> + <id>stop1</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + </configuration> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>org.apache.activemq.examples.jms</groupId> + <artifactId>activemq-jms-clustered-topic-example</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-core-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-all</artifactId> + <version>${netty.version}</version> + </dependency> + <dependency> + <groupId>org.apache.geronimo.specs</groupId> + <artifactId>geronimo-jms_2.0_spec</artifactId> + <version>${geronimo.jms.2.spec.version}</version> + </dependency> + </dependencies> <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> - <fork>true</fork> + <waitOnStart>false</waitOnStart> <systemProperties> <property> <name>data.dir</name> <value>${basedir}/target/</value> </property> - <property> - <name>udp-address</name> - <value>${udp-address}</value> - </property> </systemProperties> </configuration> - </execution> - <execution> - <id>runClient</id> - <goals> - <goal>runClient</goal> - </goals> - <configuration> - <clientClass>org.apache.activemq.jms.example.ClusteredTopicExample</clientClass> - <args> - <param>tcp://localhost:61616</param> - <param>tcp://localhost:61617</param> - </args> - <systemProperties> - <property> - <name>exampleConfigDir</name> - <value>${basedir}/target/classes/activemq</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>stop0</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - </configuration> - </execution> - <execution> - <id>stop1</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.activemq.examples.jms</groupId> - <artifactId>activemq-jms-clustered-topic-example</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-core-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>io.netty</groupId> - <artifactId>netty-all</artifactId> - <version>${netty.version}</version> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jms_2.0_spec</artifactId> - <version>${geronimo.jms.2.spec.version}</version> - </dependency> - </dependencies> - <configuration> - <waitOnStart>false</waitOnStart> - <systemProperties> - <property> - <name>data.dir</name> - <value>${basedir}/target/</value> - </property> - </systemProperties> - </configuration> - </plugin> - </plugins> - </build> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/clustered-topic/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/clustered-topic/readme.html b/examples/jms/clustered-topic/readme.html index af54c1f..178f602 100644 --- a/examples/jms/clustered-topic/readme.html +++ b/examples/jms/clustered-topic/readme.html @@ -51,7 +51,7 @@ under the License. <p>For more information on ActiveMQ load balancing, and clustering in general, please see the clustering section of the user manual.</p> <h2>Example step-by-step</h2> - <p><i>To run the example, simply type <code>mvn verify</code> from this directory</i></p> + <p><i>To run the example, simply type <code>mvn verify -Pexample</code> from this directory</i></p> <ol> <li> Get an initial context for looking up JNDI from server 0.</li> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/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 64238e6..5a8c530 100644 --- a/examples/jms/colocated-failover-scale-down/pom.xml +++ b/examples/jms/colocated-failover-scale-down/pom.xml @@ -44,123 +44,128 @@ under the License. </dependency> </dependencies> - <build> - <plugins> - <plugin> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-maven-plugin</artifactId> - <executions> - <execution> - <id>start0</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - <systemProperties> - <property> - <name>udp-address</name> - <value>${udp-address}</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>start1</id> - <goals> - <goal>start</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> - <fork>true</fork> - <systemProperties> - <property> - <name>udp-address</name> - <value>${udp-address}</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>runClient</id> - <goals> - <goal>runClient</goal> - </goals> - <configuration> - <clientClass>org.apache.activemq.jms.example.ColocatedFailoverScaleDownExample</clientClass> - <args> - <param>tcp://localhost:61616</param> - <param>tcp://localhost:61617</param> - </args> - <systemProperties> - <property> - <name>exampleConfigDir</name> - <value>${basedir}/target/classes/activemq</value> - </property> - </systemProperties> - </configuration> - </execution> - <execution> - <id>stop0</id> - <goals> - <goal>stop</goal> - </goals> - <configuration> - <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> - </configuration> - </execution> - <execution> - <id>stop1</id> - <goals> - <goal>stop</goal> - </goals> + <profiles> + <profile> + <id>example</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-maven-plugin</artifactId> + <executions> + <execution> + <id>start0</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + <systemProperties> + <property> + <name>udp-address</name> + <value>${udp-address}</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>start1</id> + <goals> + <goal>start</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + <fork>true</fork> + <systemProperties> + <property> + <name>udp-address</name> + <value>${udp-address}</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>runClient</id> + <goals> + <goal>runClient</goal> + </goals> + <configuration> + <clientClass>org.apache.activemq.jms.example.ColocatedFailoverScaleDownExample</clientClass> + <args> + <param>tcp://localhost:61616</param> + <param>tcp://localhost:61617</param> + </args> + <systemProperties> + <property> + <name>exampleConfigDir</name> + <value>${basedir}/target/classes/activemq</value> + </property> + </systemProperties> + </configuration> + </execution> + <execution> + <id>stop0</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server0</configurationDir> + </configuration> + </execution> + <execution> + <id>stop1</id> + <goals> + <goal>stop</goal> + </goals> + <configuration> + <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + </configuration> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>org.apache.activemq.examples.jms</groupId> + <artifactId>colocated-failover-scale-down</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-core-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-client</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.activemq</groupId> + <artifactId>activemq-jms-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>io.netty</groupId> + <artifactId>netty-all</artifactId> + <version>${netty.version}</version> + </dependency> + <dependency> + <groupId>org.apache.geronimo.specs</groupId> + <artifactId>geronimo-jms_2.0_spec</artifactId> + <version>${geronimo.jms.2.spec.version}</version> + </dependency> + </dependencies> <configuration> - <configurationDir>${basedir}/target/classes/activemq/server1</configurationDir> + <waitOnStart>false</waitOnStart> </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.activemq.examples.jms</groupId> - <artifactId>colocated-failover-scale-down</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-core-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>activemq-jms-server</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>io.netty</groupId> - <artifactId>netty-all</artifactId> - <version>${netty.version}</version> - </dependency> - <dependency> - <groupId>org.apache.geronimo.specs</groupId> - <artifactId>geronimo-jms_2.0_spec</artifactId> - <version>${geronimo.jms.2.spec.version}</version> - </dependency> - </dependencies> - <configuration> - <waitOnStart>false</waitOnStart> - </configuration> - </plugin> - </plugins> - </build> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> http://git-wip-us.apache.org/repos/asf/activemq-6/blob/8db56b73/examples/jms/colocated-failover-scale-down/readme.html ---------------------------------------------------------------------- diff --git a/examples/jms/colocated-failover-scale-down/readme.html b/examples/jms/colocated-failover-scale-down/readme.html index 36a8ee4..e6710ac 100644 --- a/examples/jms/colocated-failover-scale-down/readme.html +++ b/examples/jms/colocated-failover-scale-down/readme.html @@ -60,7 +60,7 @@ under the License. <p> One other thing to notice is that the cluster connection has its reconnect attempts set to 5, this is so it will disconnect instead of trying to reconnect to a backup that doesn't exist.</p> <h2>Example step-by-step</h2> - <p><i>To run the example, simply type <code>mvn verify</code> from this directory</i></p> + <p><i>To run the example, simply type <code>mvn verify -Pexample</code> from this directory</i></p> <ol> <li> Get an initial context for looking up JNDI for both servers</li>
