activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [30/48] activemq-artemis git commit: renaming broker-features -> features on examples
Date Thu, 13 Aug 2015 04:13:48 GMT
http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/request-reply/readme.html
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/request-reply/readme.html b/examples/broker-features/standard/request-reply/readme.html
deleted file mode 100644
index 73d278d..0000000
--- a/examples/broker-features/standard/request-reply/readme.html
+++ /dev/null
@@ -1,180 +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.
--->
-
-<html>
-  <head>
-    <title>ActiveMQ Artemis JMS Request-Reply Example</title>
-    <link rel="stylesheet" type="text/css" href="../../../common/common.css" />
-    <link rel="stylesheet" type="text/css" href="../../../common/prettify.css" />
-    <script type="text/javascript" src="../../../common/prettify.js"></script>
-  </head>
-  <body onload="prettyPrint()">
-     <h1>JMS Request-Reply Example</h1>
-
-     <p>This example shows you how to handle a request message and receive a reply. To get a reply message, the requesting client creates a temporary queue. Then it sends out the request message with JMSReplyTo set to the temporary queue. The request message is handled by a SimpleRequestServer, who is listening to the request queue for incoming requests. If a request message has arrived, it extracts the reply queue from the request message by JMSReplyTo header, and sends back a reply message. To let the client know to which request message a reply message is related, the server also set the JMSCorrelationID with the request message's JMSMessageID header to the reply message.</p>
-<p>Of course, in a real world example you would re-use the session, producer, consumer and temporary queue and not create a new one for each message!
-Or better still use the correlation id, and just store the requests in a map, then you don't need a temporary queue at all
-
-     <p>Request/Reply style messaging is supported through standard JMS message headers JMSReplyTo and JMSCorrelationID. This is often used in request-reply style communications between applications.
-     Whenever a client sends a message that expects a response, it can use this mechanism to implement. please consult the JMS 1.1 specification for full details.</p>
-
-     <h2>Example step-by-step</h2>
-     <p><i>To run the example, simply type <code>mvn verify -Pexample</code> from this directory</i></p>
-
-     <ol>
-
-        <li>We start the request server</li>
-        <pre class="prettyprint">
-           <code>SimpleRequestServer server = new SimpleRequestServer();</code>
-           <code>server.start();</code>
-        </pre>
-
-        <li>We need to get an initial context so we can look-up the JMS connection factory and destination objects from JNDI. This initial context will get it's properties from the <code>client-jndi.properties</code> file in the directory <code>../common/config</code></li>
-        <pre class="prettyprint">
-           <code>initialContext = getContext();</code>
-        </pre>
-
-        <li>We lookup the queue for sending the request message</li>
-        <pre class="prettyprint">
-           <code>Queue requestQueue = (Queue) initialContext.lookup("/queue/exampleQueue");</code>
-        </pre>
-
-        <li>We lookup for the Connection Factory</li>
-        <pre class="prettyprint">
-           <code>ConnectionFactory cf = (ConnectionFactory) initialContext.lookup("/ConnectionFactory");</code>
-        </pre>
-
-        <li>We create a JMS Connection</li>
-        <pre class="prettyprint">
-           <code>connection = cf.createConnection();</code>
-        </pre>
-
-        <li>We start the connection</li>
-        <pre class="prettyprint">
-           <code>connection.start();</code>
-        </pre>
-
-        <li>We create a JMS Session</li>
-        <pre class="prettyprint">
-           <code>Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);</code>
-        </pre>
-
-        <li>We create a JMS Message Producer to send request message</li>
-        <pre class="prettyprint">
-           <code>MessageProducer producer = session.createProducer(requestQueue);</code>
-        </pre>
-
-        <li>We create a temporary queue used to send reply message to and receive reply from</li>
-        <pre class="prettyprint">
-           <code>TemporaryQueue replyQueue = session.createTemporaryQueue();</code>
-        </pre>
-
-        <li>We create a consumer to receive reply message</li>
-        <pre class="prettyprint">
-           <code>MessageConsumer replyConsumer = session.createConsumer(replyQueue);</code>
-        </pre>
-
-        <li>We create a request Text Message</li>
-        <pre class="prettyprint">
-           <code>TextMessage requestMsg = session.createTextMessage("A request message");</code>
-        </pre>
-
-        <li>We set the ReplyTo header so that the request receiver knows where to send the reply.</li>
-        <pre class="prettyprint">
-           <code>requestMsg.setJMSReplyTo(replyQueue);</code>
-        </pre>
-
-        <li>We sent the request message</li>
-        <pre class="prettyprint">
-           <code>producer.send(requestMsg);</code>
-        </pre>
-
-        <li>We put the request message to the map. Later we use it to check out which request message a reply message is for. Here we use the MessageID as the correlation id (JMSCorrelationID). You don't have to use it though. You can use some arbitrary string for example.</li>
-        <pre class="prettyprint">
-           <code>requestMap.put(requestMsg.getJMSMessageID(), requestMsg);</code>
-        </pre>
-
-        <li>We receive the reply message</li>
-        <pre class="prettyprint">
-           <code>TextMessage replyMessageReceived = (TextMessage)replyConsumer.receive();</code>
-        </pre>
-
-        <li>We check out which request message is this reply message sent for. Here we just have one request message for illustrative purpose. In real world there may be many requests and many replies.</li>
-        <pre class="prettyprint">
-           <code>TextMessage matchedMessage = requestMap.get(replyMessageReceived.getJMSCorrelationID());</code>
-        </pre>
-
-        <li>We close the consumer and producer on the replyQueue</li>
-        <pre class="prettyprint">
-           <code>replyConsumer.close();</code>
-        </pre>
-
-        <li>We delete the temporary queue</li>
-        <pre class="prettyprint">
-           <code>replyQueue.delete();</code>
-        </pre>
-
-        <li>We shutdown the request server</li>
-        <pre class="prettyprint">
-           <code>server.shutdown();</code>
-        </pre>
-
-        <li>And finally, <b>always</b> remember to close your JMS connections and resources after use, in a <code>finally</code> block. Closing a JMS connection will automatically close all of its sessions, consumers, producer and browser objects</li>
-
-        <pre class="prettyprint">
-           <code>finally
-           {
-              if (initialContext != null)
-              {
-                initialContext.close();
-              }
-              if (connection != null)
-              {
-                 connection.close();
-              }
-           }</code>
-        </pre>
-     </ol>
-
-     Request Messages are handled in SimpleRequestServer.onMessage(),
-
-     <ol>
-        <li>Extract the ReplyTo destination</li>
-        <pre class="prettyprint">
-           <code>Destination replyDestination = request.getJMSReplyTo();</code>
-        </pre>
-
-        <li>Create the reply message</li>
-        <pre class="prettyprint">
-           <code>TextMessage replyMessage = session.createTextMessage("A reply message");</code>
-        </pre>
-
-        <li>Set the CorrelationID</li>
-        <pre class="prettyprint">
-           <code>replyMessage.setJMSCorrelationID(request.getJMSCorrelationID());</code>
-        </pre>
-
-        <li>Send out the reply message</li>
-        <pre class="prettyprint">
-           <code>replyProducer.send(replyMessage);</code>
-        </pre>
-     </ol>
-
-  </body>
-</html>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/request-reply/src/main/java/org/apache/activemq/artemis/jms/example/RequestReplyExample.java
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/request-reply/src/main/java/org/apache/activemq/artemis/jms/example/RequestReplyExample.java b/examples/broker-features/standard/request-reply/src/main/java/org/apache/activemq/artemis/jms/example/RequestReplyExample.java
deleted file mode 100644
index 5d2e4dc..0000000
--- a/examples/broker-features/standard/request-reply/src/main/java/org/apache/activemq/artemis/jms/example/RequestReplyExample.java
+++ /dev/null
@@ -1,202 +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.
- */
-package org.apache.activemq.artemis.jms.example;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.jms.Connection;
-import javax.jms.ConnectionFactory;
-import javax.jms.Destination;
-import javax.jms.JMSException;
-import javax.jms.Message;
-import javax.jms.MessageConsumer;
-import javax.jms.MessageListener;
-import javax.jms.MessageProducer;
-import javax.jms.Queue;
-import javax.jms.Session;
-import javax.jms.TemporaryQueue;
-import javax.jms.TextMessage;
-import javax.naming.InitialContext;
-
-/**
- * A simple JMS example that shows how to use Request/Replay style messaging.
- *
- * Of course, in a real world example you would re-use the session, producer, consumer and temporary queue
- * and not create a new one for each message!
- *
- * Or better still use the correlation id, and just store the requests in a map, then you don't need a temporary queue at all
- */
-public class RequestReplyExample {
-
-   public static void main(final String[] args) throws Exception {
-      final Map<String, TextMessage> requestMap = new HashMap<String, TextMessage>();
-      Connection connection = null;
-      InitialContext initialContext = null;
-
-      try {
-         // Step 1. Start the request server
-         SimpleRequestServer server = new SimpleRequestServer();
-         server.start();
-
-         // Step 2. Create an initial context to perform the JNDI lookup.
-         initialContext = new InitialContext();
-
-         // Step 3. Lookup the queue for sending the request message
-         Queue requestQueue = (Queue) initialContext.lookup("queue/exampleQueue");
-
-         // Step 4. Lookup for the Connection Factory
-         ConnectionFactory cf = (ConnectionFactory) initialContext.lookup("ConnectionFactory");
-
-         // Step 5. Create a JMS Connection
-         connection = cf.createConnection();
-
-         // Step 6. Start the connection.
-         connection.start();
-
-         // Step 7. Create a JMS Session
-         Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
-
-         // Step 8. Create a JMS Message Producer to send request message
-         MessageProducer producer = session.createProducer(requestQueue);
-
-         // Step 9. Create a temporary queue used to send reply message
-         TemporaryQueue replyQueue = session.createTemporaryQueue();
-
-         // Step 10. Create consumer to receive reply message
-         MessageConsumer replyConsumer = session.createConsumer(replyQueue);
-
-         // Step 11. Create a request Text Message
-         TextMessage requestMsg = session.createTextMessage("A request message");
-
-         // Step 12. Set the ReplyTo header so that the request receiver knows where to send the reply.
-         requestMsg.setJMSReplyTo(replyQueue);
-
-         // Step 13. Sent the request message
-         producer.send(requestMsg);
-
-         System.out.println("Request message sent.");
-
-         // Step 14. Put the request message to the map. Later we can use it to
-         // check out which request message a reply message is for. Here we use the MessageID as the
-         // correlation id (JMSCorrelationID). You don't have to use it though. You can use some arbitrary string for
-         // example.
-         requestMap.put(requestMsg.getJMSMessageID(), requestMsg);
-
-         // Step 15. Receive the reply message.
-         TextMessage replyMessageReceived = (TextMessage) replyConsumer.receive();
-
-         System.out.println("Received reply: " + replyMessageReceived.getText());
-         System.out.println("CorrelatedId: " + replyMessageReceived.getJMSCorrelationID());
-
-         // Step 16. Check out which request message is this reply message sent for.
-         // Here we just have one request message for illustrative purpose. In real world there may be many requests and
-         // many replies.
-         TextMessage matchedMessage = requestMap.get(replyMessageReceived.getJMSCorrelationID());
-
-         System.out.println("We found matched request: " + matchedMessage.getText());
-
-         // Step 17. close the consumer.
-         replyConsumer.close();
-
-         // Step 18. Delete the temporary queue
-         replyQueue.delete();
-
-         // Step 19. Shutdown the request server
-         server.shutdown();
-      }
-      finally {
-         // Step 20. Be sure to close our JMS resources!
-         if (connection != null) {
-            connection.close();
-         }
-         // Step 21. Also close the initialContext!
-         if (initialContext != null) {
-            initialContext.close();
-         }
-      }
-   }
-}
-
-class SimpleRequestServer implements MessageListener {
-
-   private Connection connection;
-
-   private Session session;
-
-   MessageProducer replyProducer;
-
-   MessageConsumer requestConsumer;
-
-   public void start() throws Exception {
-      // Get an initial context to perform the JNDI lookup.
-      InitialContext initialContext = new InitialContext();
-
-      // Lookup the queue to receive the request message
-      Queue requestQueue = (Queue) initialContext.lookup("queue/exampleQueue");
-
-      // Lookup for the Connection Factory
-      ConnectionFactory cfact = (ConnectionFactory) initialContext.lookup("ConnectionFactory");
-
-      // Create a connection
-      connection = cfact.createConnection();
-
-      // Start the connection;
-      connection.start();
-
-      // Create a session
-      session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
-
-      // Create a producer to send the reply message
-      replyProducer = session.createProducer(null);
-
-      // Create the request comsumer
-      requestConsumer = session.createConsumer(requestQueue);
-
-      // register the listener
-      requestConsumer.setMessageListener(this);
-   }
-
-   public void onMessage(final Message request) {
-      try {
-         System.out.println("Received request message: " + ((TextMessage) request).getText());
-
-         // Extract the ReplyTo destination
-         Destination replyDestination = request.getJMSReplyTo();
-
-         System.out.println("Reply to queue: " + replyDestination);
-
-         // Create the reply message
-         TextMessage replyMessage = session.createTextMessage("A reply message");
-
-         // Set the CorrelationID, using message id.
-         replyMessage.setJMSCorrelationID(request.getJMSMessageID());
-
-         // Send out the reply message
-         replyProducer.send(replyDestination, replyMessage);
-
-         System.out.println("Reply sent");
-      }
-      catch (JMSException e) {
-         e.printStackTrace();
-      }
-   }
-
-   public void shutdown() throws JMSException {
-      connection.close();
-   }
-}

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/request-reply/src/main/resources/jndi.properties
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/request-reply/src/main/resources/jndi.properties b/examples/broker-features/standard/request-reply/src/main/resources/jndi.properties
deleted file mode 100644
index 7f7a19f..0000000
--- a/examples/broker-features/standard/request-reply/src/main/resources/jndi.properties
+++ /dev/null
@@ -1,20 +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.
-
-java.naming.factory.initial=org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory
-connectionFactory.ConnectionFactory=tcp://localhost:61616?ha=true&retryInterval=1000&retryIntervalMultiplier=1.0&reconnectAttempts=-1
-queue.queue/exampleQueue=exampleQueue

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/dup-send/README.txt
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/README.txt b/examples/broker-features/standard/rest/dup-send/README.txt
deleted file mode 100644
index 0e794b8..0000000
--- a/examples/broker-features/standard/rest/dup-send/README.txt
+++ /dev/null
@@ -1,41 +0,0 @@
-System Requirements:
-You will need JDK 1.6 and Maven to run this example.  This example has been tested with Maven 2.2.1.  It may or may not work 
-with earlier or later versions of Maven.
-
-
-This is an example of using duplicate detection for posted messages.  The first file to look at is:
-
-src/main/resource/activemq-rest.xml
-
-You see that by default, all messages posted to msg-create URLs will follow the duplicate detection pattern talked
-about in the documentation.
-
-To run the example you will need 3 shell-script windows (or you'll need to run 2 processes in background)
-
-Step 1:
-$ mvn jetty:run
-
-This will bring up ActiveMQ Artemis and the ActiveMQ Artemis REST Interface.
-
-Step 2:
-$ mvn exec:java -Dexec.mainClass="ReceiveOrder"
-
-This will bring up a REST client that is continuously pulling the server through a consume-next (see doco for details).
-
-Step 3:
-$ mvn exec:java -Dexec.mainClass="PostOrder"
-
-This class will post 3 orders.  The first order will cause the 307 redirection as stated in the docs.  A 2nd order
-will be posted twice through the same consume-next URL.  You'll see from the ReceiveOrder process that only 2 messages
-are actually processed through the queue (instead of the 3 posts that were done).
-
-Step 4:
-
-In Step 4, you will use the create-with-id URL published by the container.  To run the example, you must pass in
-your own order id.  For example:
-
-$ mvn exec:java -Dexec.mainClass="PostOrderWithId" -Dexec.args="001"
-
-If you run this program with the same argument you'll see that only one of the messages passes through the queue
-and is consumed by the ReceiveOrder process.  Pass a different string to -Dexec.args to post a new message that
-isn't caught by the dup-detection facility.

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/dup-send/pom.xml
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/pom.xml b/examples/broker-features/standard/rest/dup-send/pom.xml
deleted file mode 100644
index f31240a..0000000
--- a/examples/broker-features/standard/rest/dup-send/pom.xml
+++ /dev/null
@@ -1,170 +0,0 @@
-<?xml version='1.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.
--->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-   <modelVersion>4.0.0</modelVersion>
-   <parent>
-      <groupId>org.apache.activemq.examples.rest</groupId>
-      <artifactId>artemis-rests-pom</artifactId>
-      <version>1.0.1-SNAPSHOT</version>
-   </parent>
-   <artifactId>dup-send</artifactId>
-   <packaging>war</packaging>
-   <name>Duplicate Send Demo</name>
-
-   <properties>
-      <activemq.basedir>${project.basedir}/../../../../..</activemq.basedir>
-   </properties>
-
-   <repositories>
-      <repository>
-         <id>jboss</id>
-         <url>http://repository.jboss.org/nexus/content/groups/public/</url>
-      </repository>
-   </repositories>
-
-   <profiles>
-      <profile>
-         <id>example</id>
-         <build>
-            <finalName>order-flow</finalName>
-            <plugins>
-               <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-surefire-plugin</artifactId>
-                  <configuration>
-                     <skip>true</skip>
-                  </configuration>
-                  <executions>
-                     <execution>
-                        <id>surefire-it</id>
-                        <phase>integration-test</phase>
-                        <goals>
-                           <goal>test</goal>
-                        </goals>
-                        <configuration>
-                           <skip>false</skip>
-                        </configuration>
-                     </execution>
-                  </executions>
-               </plugin>
-               <plugin>
-                  <groupId>org.codehaus.mojo</groupId>
-                  <artifactId>exec-maven-plugin</artifactId>
-                  <version>1.1</version>
-                  <executions>
-                     <execution>
-                        <goals>
-                           <goal>java</goal>
-                        </goals>
-                     </execution>
-                  </executions>
-               </plugin>
-               <plugin>
-                  <groupId>org.mortbay.jetty</groupId>
-                  <artifactId>maven-jetty-plugin</artifactId>
-                  <version>6.1.15</version>
-                  <configuration>
-                     <!-- By default the artifactId is taken, override it with something simple -->
-                     <contextPath>/</contextPath>
-                     <scanIntervalSeconds>2</scanIntervalSeconds>
-                     <stopKey>foo</stopKey>
-                     <stopPort>9999</stopPort>
-                     <connectors>
-                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
-                           <port>9095</port>
-                           <maxIdleTime>60000</maxIdleTime>
-                        </connector>
-                     </connectors>
-                  </configuration>
-                  <executions>
-                     <execution>
-                        <id>start-jetty</id>
-                        <phase>pre-integration-test</phase>
-                        <goals>
-                           <goal>run</goal>
-                        </goals>
-                        <configuration>
-                           <scanIntervalSeconds>0</scanIntervalSeconds>
-                           <daemon>true</daemon>
-                        </configuration>
-                     </execution>
-                     <execution>
-                        <id>stop-jetty</id>
-                        <phase>post-integration-test</phase>
-                        <goals>
-                           <goal>stop</goal>
-                        </goals>
-                     </execution>
-                  </executions>
-               </plugin>
-            </plugins>
-         </build>
-      </profile>
-   </profiles>
-   <dependencies>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-core-client</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-server</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-jms-client</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-jms-server</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>io.netty</groupId>
-         <artifactId>netty-all</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.geronimo.specs</groupId>
-         <artifactId>geronimo-jms_2.0_spec</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq.rest</groupId>
-         <artifactId>artemis-rest</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.jboss.resteasy</groupId>
-         <artifactId>resteasy-jaxrs</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.jboss.resteasy</groupId>
-         <artifactId>resteasy-jaxb-provider</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>junit</groupId>
-         <artifactId>junit</artifactId>
-         <scope>test</scope>
-      </dependency>
-   </dependencies>
-</project>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/dup-send/src/main/java/Order.java
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/src/main/java/Order.java b/examples/broker-features/standard/rest/dup-send/src/main/java/Order.java
deleted file mode 100644
index 2b938f7..0000000
--- a/examples/broker-features/standard/rest/dup-send/src/main/java/Order.java
+++ /dev/null
@@ -1,69 +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.
- */
-
-import javax.xml.bind.annotation.XmlRootElement;
-import java.io.Serializable;
-
-@XmlRootElement(name = "order")
-public class Order implements Serializable {
-
-   private String name;
-   private String amount;
-   private String item;
-
-   public Order() {
-   }
-
-   public Order(String name, String amount, String item) {
-      this.name = name;
-      this.amount = amount;
-      this.item = item;
-   }
-
-   public String getName() {
-      return name;
-   }
-
-   public void setName(String name) {
-      this.name = name;
-   }
-
-   public String getAmount() {
-      return amount;
-   }
-
-   public void setAmount(String amount) {
-      this.amount = amount;
-   }
-
-   public String getItem() {
-      return item;
-   }
-
-   public void setItem(String item) {
-      this.item = item;
-   }
-
-   @Override
-   public String toString() {
-      return "Order{" +
-         "name='" + name + '\'' +
-         ", amount='" + amount + '\'' +
-         ", item='" + item + '\'' +
-         '}';
-   }
-}

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/dup-send/src/main/java/PostOrder.java
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/src/main/java/PostOrder.java b/examples/broker-features/standard/rest/dup-send/src/main/java/PostOrder.java
deleted file mode 100644
index a864e44..0000000
--- a/examples/broker-features/standard/rest/dup-send/src/main/java/PostOrder.java
+++ /dev/null
@@ -1,69 +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.
- */
-
-import org.jboss.resteasy.client.ClientRequest;
-import org.jboss.resteasy.client.ClientResponse;
-import org.jboss.resteasy.spi.Link;
-
-public class PostOrder {
-
-   public static void main(String[] args) throws Exception {
-      // first get the create URL for the shipping queue
-      ClientRequest request = new ClientRequest("http://localhost:9095/queues/jms.queue.orders");
-      ClientResponse res = request.head();
-      Link create = res.getHeaderAsLink("msg-create");
-
-      System.out.println("Send Bill's order...");
-      Order order = new Order();
-      order.setName("Bill");
-      order.setItem("iPhone4");
-      order.setAmount("$199.99");
-
-      res = create.request().body("application/xml", order).post();
-
-      if (res.getStatus() == 307) {
-         Link redirect = res.getLocationLink();
-         res.releaseConnection();
-         res = redirect.request().body("application/xml", order).post();
-      }
-
-      if (res.getStatus() != 201)
-         throw new RuntimeException("Failed to post");
-
-      create = res.getHeaderAsLink("msg-create-next");
-
-      if (res.getStatus() != 201)
-         throw new RuntimeException("Failed to post");
-
-      System.out.println("Send Monica's order...");
-      order.setName("Monica");
-
-      res.releaseConnection();
-      res = create.request().body("application/xml", order).post();
-
-      if (res.getStatus() != 201)
-         throw new RuntimeException("Failed to post");
-
-      System.out.println("Resend Monica's order over same create-next link...");
-
-      res.releaseConnection();
-      res = create.request().body("application/xml", order).post();
-
-      if (res.getStatus() != 201)
-         throw new RuntimeException("Failed to post");
-   }
-}

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/dup-send/src/main/java/PostOrderWithId.java
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/src/main/java/PostOrderWithId.java b/examples/broker-features/standard/rest/dup-send/src/main/java/PostOrderWithId.java
deleted file mode 100644
index 6b610e7..0000000
--- a/examples/broker-features/standard/rest/dup-send/src/main/java/PostOrderWithId.java
+++ /dev/null
@@ -1,45 +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.
- */
-
-import org.jboss.resteasy.client.ClientRequest;
-import org.jboss.resteasy.client.ClientResponse;
-import org.jboss.resteasy.spi.Link;
-
-public class PostOrderWithId {
-
-   public static void main(String[] args) throws Exception {
-      if (args.length < 1 || args[0] == null)
-         throw new RuntimeException("You must pass in a parameter");
-
-      // first get the create URL for the shipping queue
-      ClientRequest request = new ClientRequest("http://localhost:9095/queues/jms.queue.orders");
-      ClientResponse res = request.head();
-      Link create = res.getHeaderAsLink("msg-create-with-id");
-
-      Order order = new Order();
-      order.setName(args[0]);
-      order.setItem("iPhone4");
-      order.setAmount("$199.99");
-
-      res = create.request().pathParameter("id", args[0]).body("application/xml", order).post();
-
-      if (res.getStatus() != 201)
-         throw new RuntimeException("Failed to post");
-
-      System.out.println("Sent order " + args[0]);
-   }
-}

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/dup-send/src/main/java/ReceiveOrder.java
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/src/main/java/ReceiveOrder.java b/examples/broker-features/standard/rest/dup-send/src/main/java/ReceiveOrder.java
deleted file mode 100644
index a00d110..0000000
--- a/examples/broker-features/standard/rest/dup-send/src/main/java/ReceiveOrder.java
+++ /dev/null
@@ -1,51 +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.
- */
-
-import org.jboss.resteasy.client.ClientRequest;
-import org.jboss.resteasy.client.ClientResponse;
-import org.jboss.resteasy.spi.Link;
-
-public class ReceiveOrder {
-
-   public static void main(String[] args) throws Exception {
-      // first get the create URL for the shipping queue
-      ClientRequest request = new ClientRequest("http://localhost:9095/queues/jms.queue.orders");
-      ClientResponse res = request.head();
-      Link pullConsumers = res.getHeaderAsLink("msg-pull-consumers");
-      res.releaseConnection();
-      res = pullConsumers.request().post();
-      Link consumeNext = res.getHeaderAsLink("msg-consume-next");
-      res.releaseConnection();
-      while (true) {
-         System.out.println("Waiting...");
-         res = consumeNext.request().header("Accept-Wait", "10").post();
-         if (res.getStatus() == 503) {
-            System.out.println("Timeout...");
-            consumeNext = res.getHeaderAsLink("msg-consume-next");
-         }
-         else if (res.getStatus() == 200) {
-            Order order = (Order) res.getEntity(Order.class);
-            System.out.println(order);
-            consumeNext = res.getHeaderAsLink("msg-consume-next");
-         }
-         else {
-            throw new RuntimeException("Failure! " + res.getStatus());
-         }
-         res.releaseConnection();
-      }
-   }
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/dup-send/src/main/resources/activemq-client.xml
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/src/main/resources/activemq-client.xml b/examples/broker-features/standard/rest/dup-send/src/main/resources/activemq-client.xml
deleted file mode 100644
index 6fe4547..0000000
--- a/examples/broker-features/standard/rest/dup-send/src/main/resources/activemq-client.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version='1.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.
--->
-
-<configuration xmlns="urn:activemq"
-            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-            xsi:schemaLocation="urn:activemq /schema/artemis-server.xsd">
-
-   <jms xmlns="urn:activemq:jms">
-   </jms>
-
-   <core xmlns="urn:activemq:core">
-
-      <!-- Connectors -->
-      <connectors>
-         <connector name="netty-connector">tcp://localhost:61616</connector>
-      </connectors>
-   </core>
-
-</configuration>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/dup-send/src/main/resources/activemq-rest.xml
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/src/main/resources/activemq-rest.xml b/examples/broker-features/standard/rest/dup-send/src/main/resources/activemq-rest.xml
deleted file mode 100644
index c1a7f21..0000000
--- a/examples/broker-features/standard/rest/dup-send/src/main/resources/activemq-rest.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version='1.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.
--->
-
-<rest-messaging>
-    <dups-ok>false</dups-ok>
-</rest-messaging>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/dup-send/src/main/resources/artemis-roles.properties
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/src/main/resources/artemis-roles.properties b/examples/broker-features/standard/rest/dup-send/src/main/resources/artemis-roles.properties
deleted file mode 100644
index 4e2d44c..0000000
--- a/examples/broker-features/standard/rest/dup-send/src/main/resources/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/6b17d966/examples/broker-features/standard/rest/dup-send/src/main/resources/artemis-users.properties
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/src/main/resources/artemis-users.properties b/examples/broker-features/standard/rest/dup-send/src/main/resources/artemis-users.properties
deleted file mode 100644
index 4e2d44c..0000000
--- a/examples/broker-features/standard/rest/dup-send/src/main/resources/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/6b17d966/examples/broker-features/standard/rest/dup-send/src/main/resources/broker.xml
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/src/main/resources/broker.xml b/examples/broker-features/standard/rest/dup-send/src/main/resources/broker.xml
deleted file mode 100644
index 8cc0fa6..0000000
--- a/examples/broker-features/standard/rest/dup-send/src/main/resources/broker.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version='1.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.
--->
-
-<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-               xmlns="urn:activemq"
-               xsi:schemaLocation="urn:activemq /schema/artemis-server.xsd">
-
-   <jms xmlns="urn:activemq:jms">
-      <!--the queue used by the example-->
-      <queue name="orders"/>
-   </jms>
-
-   <core xmlns="urn:activemq:core">
-
-      <persistence-enabled>false</persistence-enabled>
-      <!-- Connectors -->
-
-      <connectors>
-         <connector name="in-vm">vm://0</connector>
-      </connectors>
-
-      <acceptors>
-         <acceptor name="in-vm">vm://0</acceptor>
-         <acceptor name="netty-acceptor">tcp://localhost:61616</acceptor>
-      </acceptors>
-
-      <!-- Other config -->
-
-      <security-settings>
-         <!--security for example queue-->
-         <security-setting match="#">
-            <permission type="createDurableQueue" roles="guest"/>
-            <permission type="deleteDurableQueue" roles="guest"/>
-            <permission type="createNonDurableQueue" roles="guest"/>
-            <permission type="deleteNonDurableQueue" roles="guest"/>
-            <permission type="consume" roles="guest"/>
-            <permission type="send" roles="guest"/>
-         </security-setting>
-      </security-settings>
-
-   </core>
-</configuration>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/dup-send/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/dup-send/src/main/webapp/WEB-INF/web.xml b/examples/broker-features/standard/rest/dup-send/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index ffb38b5..0000000
--- a/examples/broker-features/standard/rest/dup-send/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.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.
--->
-
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
-        "http://java.sun.com/dtd/web-app_2_3.dtd">
-
-<web-app>
-    <context-param>
-        <param-name>rest.messaging.config.file</param-name>
-        <param-value>activemq-rest.xml</param-value>
-    </context-param>
-
-    <filter>
-        <filter-name>Rest-Messaging</filter-name>
-        <filter-class>
-            org.jboss.resteasy.plugins.server.servlet.FilterDispatcher
-        </filter-class>
-    </filter>
-
-    <filter-mapping>
-        <filter-name>Rest-Messaging</filter-name>
-        <url-pattern>/*</url-pattern>
-    </filter-mapping>
-
-    <listener>
-        <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
-    </listener>
-
-    <listener>
-        <listener-class>org.apache.activemq.rest.integration.ActiveMQBootstrapListener</listener-class>
-    </listener>
-
-    <listener>
-        <listener-class>org.apache.activemq.rest.integration.RestMessagingBootstrapListener</listener-class>
-    </listener>
-
-</web-app>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/javascript-chat/README.txt
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/javascript-chat/README.txt b/examples/broker-features/standard/rest/javascript-chat/README.txt
deleted file mode 100644
index ae0e57c..0000000
--- a/examples/broker-features/standard/rest/javascript-chat/README.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-System Requirements:
-You will need JDK 1.6, Maven, and a browser to run this example.  This example has been tested with Maven 2.2.1.  It may or may not work
-with earlier or later versions of Maven.
-
-
-This is an example of producing and consuming messages through a topic.  The client is Javascript code within your browser.
-The example is a very simple chat application between two browser windows.
-
-Step 1:
-$ mvn jetty:run
-
-This will bring up ActiveMQ Artemis and the ActiveMQ Artemis REST Interface.
-
-Step 2:
-Bring up two browsers and point them to http://localhost:9095.  In the textbox type a message you want to send.  Click
-the "Click to send message" button and you'll see the message show up in both browser windows.
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/javascript-chat/pom.xml
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/javascript-chat/pom.xml b/examples/broker-features/standard/rest/javascript-chat/pom.xml
deleted file mode 100644
index ca7306c..0000000
--- a/examples/broker-features/standard/rest/javascript-chat/pom.xml
+++ /dev/null
@@ -1,184 +0,0 @@
-<?xml version='1.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.
--->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-   <modelVersion>4.0.0</modelVersion>
-   <parent>
-      <groupId>org.apache.activemq.examples.rest</groupId>
-      <artifactId>artemis-rests-pom</artifactId>
-      <version>1.0.1-SNAPSHOT</version>
-   </parent>
-   <artifactId>javascript-chat</artifactId>
-   <packaging>war</packaging>
-   <name>Browser Chat App</name>
-
-   <properties>
-      <activemq.basedir>${project.basedir}/../../../../..</activemq.basedir>
-   </properties>
-
-   <repositories>
-      <repository>
-         <id>jboss</id>
-         <url>http://repository.jboss.org/nexus/content/groups/public/</url>
-      </repository>
-   </repositories>
-
-   <profiles>
-      <profile>
-         <id>example</id>
-         <build>
-            <finalName>chat</finalName>
-            <plugins>
-               <!--
-               <plugin>
-                   <groupId>org.mortbay.jetty</groupId>
-                   <artifactId>maven-jetty-plugin</artifactId>
-                   <version>6.1.15</version>
-                   <configuration>
-                       <contextPath>/</contextPath>
-                       <scanIntervalSeconds>2</scanIntervalSeconds>
-                       <connectors>
-                           <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
-                               <port>9095</port>
-                               <maxIdleTime>60000</maxIdleTime>
-                           </connector>
-                       </connectors>
-                       <systemProperties>
-                           <systemProperty>
-                               <name>log4j.configuration</name>
-                               <value>
-                                   file:./src/test/resources/log4j.properties
-                               </value>
-                           </systemProperty>
-                       </systemProperties>
-                   </configuration>
-               </plugin>
-       -->
-               <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-surefire-plugin</artifactId>
-                  <configuration>
-                     <skip>true</skip>
-                  </configuration>
-                  <executions>
-                     <execution>
-                        <id>surefire-it</id>
-                        <phase>integration-test</phase>
-                        <goals>
-                           <goal>test</goal>
-                        </goals>
-                        <configuration>
-                           <skip>false</skip>
-                        </configuration>
-                     </execution>
-                  </executions>
-               </plugin>
-               <plugin>
-                  <groupId>org.mortbay.jetty</groupId>
-                  <artifactId>maven-jetty-plugin</artifactId>
-                  <version>6.1.15</version>
-                  <configuration>
-                     <!-- By default the artifactId is taken, override it with something simple -->
-                     <contextPath>/</contextPath>
-                     <scanIntervalSeconds>2</scanIntervalSeconds>
-                     <stopKey>foo</stopKey>
-                     <stopPort>9999</stopPort>
-                     <connectors>
-                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
-                           <port>9095</port>
-                           <maxIdleTime>60000</maxIdleTime>
-                        </connector>
-                     </connectors>
-                  </configuration>
-                  <executions>
-                     <execution>
-                        <id>start-jetty</id>
-                        <phase>pre-integration-test</phase>
-                        <goals>
-                           <goal>run</goal>
-                        </goals>
-                        <configuration>
-                           <scanIntervalSeconds>0</scanIntervalSeconds>
-                           <daemon>true</daemon>
-                        </configuration>
-                     </execution>
-                     <execution>
-                        <id>stop-jetty</id>
-                        <phase>post-integration-test</phase>
-                        <goals>
-                           <goal>stop</goal>
-                        </goals>
-                     </execution>
-                  </executions>
-               </plugin>
-            </plugins>
-         </build>
-      </profile>
-   </profiles>
-   <dependencies>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-core-client</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-server</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-jms-client</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-jms-server</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>io.netty</groupId>
-         <artifactId>netty-all</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.geronimo.specs</groupId>
-         <artifactId>geronimo-jms_2.0_spec</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq.rest</groupId>
-         <artifactId>artemis-rest</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.jboss.resteasy</groupId>
-         <artifactId>resteasy-jaxrs</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.jboss.resteasy</groupId>
-         <artifactId>resteasy-jaxb-provider</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>junit</groupId>
-         <artifactId>junit</artifactId>
-         <version>4.1</version>
-         <scope>test</scope>
-      </dependency>
-   </dependencies>
-</project>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/javascript-chat/src/main/resources/artemis-roles.properties
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/javascript-chat/src/main/resources/artemis-roles.properties b/examples/broker-features/standard/rest/javascript-chat/src/main/resources/artemis-roles.properties
deleted file mode 100644
index 4e2d44c..0000000
--- a/examples/broker-features/standard/rest/javascript-chat/src/main/resources/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/6b17d966/examples/broker-features/standard/rest/javascript-chat/src/main/resources/artemis-users.properties
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/javascript-chat/src/main/resources/artemis-users.properties b/examples/broker-features/standard/rest/javascript-chat/src/main/resources/artemis-users.properties
deleted file mode 100644
index 4e2d44c..0000000
--- a/examples/broker-features/standard/rest/javascript-chat/src/main/resources/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/6b17d966/examples/broker-features/standard/rest/javascript-chat/src/main/resources/broker.xml
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/javascript-chat/src/main/resources/broker.xml b/examples/broker-features/standard/rest/javascript-chat/src/main/resources/broker.xml
deleted file mode 100644
index e5e1364..0000000
--- a/examples/broker-features/standard/rest/javascript-chat/src/main/resources/broker.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version='1.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.
--->
-
-<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-               xmlns="urn:activemq"
-               xsi:schemaLocation="urn:activemq /schema/artemis-server.xsd">
-
-   <jms xmlns="urn:activemq:jms">
-      <!--the queue used by the example-->
-      <topic name="chat"/>
-   </jms>
-
-   <core xmlns="urn:activemq:core">
-
-      <persistence-enabled>false</persistence-enabled>
-      <!-- Connectors -->
-
-      <connectors>
-         <connector name="in-vm">vm://0</connector>
-      </connectors>
-
-      <acceptors>
-         <acceptor name="in-vm">vm://0</acceptor>
-      </acceptors>
-
-      <!-- Other config -->
-
-      <security-settings>
-         <!--security for example queue-->
-         <security-setting match="#">
-            <permission type="createDurableQueue" roles="guest"/>
-            <permission type="deleteDurableQueue" roles="guest"/>
-            <permission type="createNonDurableQueue" roles="guest"/>
-            <permission type="deleteNonDurableQueue" roles="guest"/>
-            <permission type="consume" roles="guest"/>
-            <permission type="send" roles="guest"/>
-         </security-setting>
-      </security-settings>
-
-   </core>
-</configuration>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/javascript-chat/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/javascript-chat/src/main/webapp/WEB-INF/web.xml b/examples/broker-features/standard/rest/javascript-chat/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index e82738a..0000000
--- a/examples/broker-features/standard/rest/javascript-chat/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.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.
--->
-
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
-        "http://java.sun.com/dtd/web-app_2_3.dtd">
-
-<web-app>
-
-    <filter>
-        <filter-name>Rest-Messaging</filter-name>
-        <filter-class>
-            org.jboss.resteasy.plugins.server.servlet.FilterDispatcher
-        </filter-class>
-    </filter>
-
-    <filter-mapping>
-        <filter-name>Rest-Messaging</filter-name>
-        <url-pattern>/*</url-pattern>
-    </filter-mapping>
-
-    <listener>
-        <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
-    </listener>
-
-    <listener>
-        <listener-class>org.apache.activemq.rest.integration.ActiveMQBootstrapListener</listener-class>
-    </listener>
-
-    <listener>
-        <listener-class>org.apache.activemq.rest.integration.RestMessagingBootstrapListener</listener-class>
-    </listener>
-
-</web-app>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/javascript-chat/src/main/webapp/index.html
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/javascript-chat/src/main/webapp/index.html b/examples/broker-features/standard/rest/javascript-chat/src/main/webapp/index.html
deleted file mode 100644
index f74e0ee..0000000
--- a/examples/broker-features/standard/rest/javascript-chat/src/main/webapp/index.html
+++ /dev/null
@@ -1,189 +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.
--->
-
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
-        "http://www.w3.org/TR/html4/loose.dtd">
-<html>
-<head>
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-    <script type="text/javascript">
-        <!--
-
-        function createXHR()
-        {
-            var request = false;
-            try
-            {
-                request = new ActiveXObject('Msxml2.XMLHTTP');
-            }
-            catch (err2)
-            {
-                try
-                {
-                    request = new ActiveXObject('Microsoft.XMLHTTP');
-                }
-                catch (err3)
-                {
-                    try
-                    {
-                        request = new XMLHttpRequest();
-                    }
-                    catch (err1)
-                    {
-                        request = false;
-                    }
-                }
-            }
-            return request;
-        }
-
-        var topicSender;
-        var nextMessage;
-        var subscriptions;
-        var count = 0;
-        var reconnect = true;
-
-        function initializeSenderAndTop(topic)
-        {
-            var xhr = createXHR();
-            xhr.open("HEAD", "topics/" + topic, true);
-            xhr.onreadystatechange = function()
-            {
-                if (xhr.readyState == 4)
-                {
-                    if (xhr.status == 200)
-                    {
-                       // getting the links from the rest resource
-                       topicSender = xhr.getResponseHeader("msg-create");
-                       subscriptions = xhr.getResponseHeader("msg-pull-subscriptions");
-
-                       // just adding the report
-                       document.getElementById("errors").innerHTML = "Subscriptions URL: " + subscriptions;
-                    }
-                }
-            }
-            
-            // this will send the request from javascript
-            xhr.send(null);
-        }
-
-        function postMessage(user, message)
-        {
-            var xhr = createXHR();
-            xhr.open("POST", topicSender, false);
-            xhr.setRequestHeader("Content-Type", "text/plain");
-            xhr.send(user + ": " + message);
-            if (xhr.status == 201)
-            {
-               topicSender = xhr.getResponseHeader("msg-create-next");
-            }
-            else
-            {
-               document.getElementById("errors").innerHTML = "Failed to send message: " + topicSender;
-            }
-        }
-
-        function receiveMessage()
-        {
-            var xhr = createXHR();
-            if (reconnect)
-            {
-               document.getElementById("connection").innerHTML = "Trying to reconnect: " + subscriptions + " retries: " + count++;
-               xhr.open("POST", subscriptions, true);
-               xhr.onreadystatechange = function()
-               {
-                  if (xhr.readyState == 4)
-                  {
-                    var status = xhr.status;
-                    if (status == 201)
-                    {
-                       nextMessage = xhr.getResponseHeader("msg-consume-next");
-                       document.getElementById("connection").innerHTML = "Connected to: " + nextMessage;
-                       count = 1;
-                       reconnect = false;
-                    }
-                    setTimeout("receiveMessage()", 800);
-                  }
-               }
-               xhr.send(null);
-            }
-            else
-            {
-               xhr.open("POST", nextMessage, true);
-               xhr.setRequestHeader("Accept-Wait", "10")
-               xhr.onreadystatechange = function()
-               {
-                  if (xhr.readyState == 4)
-                  {
-                    var status = xhr.status;
-                    if (status == 200)
-                    {
-                        document.getElementById("next").innerHTML = xhr.responseText + "\n" + document.getElementById("next").innerHTML;
-                        nextMessage = xhr.getResponseHeader("msg-consume-next");
-                    }
-                    else
-                    {
-                       reconnect = true;
-                    }
-                    setTimeout("receiveMessage()", 800);
-                  }
-               }
-               xhr.send(null);
-            }
-        }
-
-        initializeSenderAndTop('jms.topic.chat');
-
-
-        setTimeout("receiveMessage()", 800);
-
-
-        // -->
-    </script>
-    <title>Ajax Chat Demo</title></head>
-
-
-<body bgcolor="#FFFFFF">
-
-<p><font size="+3">Ajax Chat Demo</font></p>
-<hr>
-<FORM name="ajax" method="POST" action="">
-
-    <p>
-        Username: <input type="text" name="user" value="Billy" size="10"><br/>
-        <input type="text" name="message">
-        <INPUT type="BUTTON" value=" Click to send message "
-               ONCLICK="postMessage(this.form.user.value, this.form.message.value)">
-    </p>
-
-</FORM>
-<div id="connection"></div>
-<br>
-
-<div id="errors"></div>
-
-<p>
-
-<h2>Messages:</h2></p>
-<pre>
-<div id="next"></div>
-</pre>
-
-</body>
-</html>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/javascript-chat/src/test/java/org/jboss/resteasy/messaging/test/AutoAckTopicTest.java
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/javascript-chat/src/test/java/org/jboss/resteasy/messaging/test/AutoAckTopicTest.java b/examples/broker-features/standard/rest/javascript-chat/src/test/java/org/jboss/resteasy/messaging/test/AutoAckTopicTest.java
deleted file mode 100644
index e1609bb..0000000
--- a/examples/broker-features/standard/rest/javascript-chat/src/test/java/org/jboss/resteasy/messaging/test/AutoAckTopicTest.java
+++ /dev/null
@@ -1,88 +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.
- */
-package org.jboss.resteasy.messaging.test;
-
-import org.jboss.resteasy.client.ClientRequest;
-import org.jboss.resteasy.client.ClientResponse;
-import org.jboss.resteasy.spi.Link;
-import org.apache.activemq.artemis.rest.util.LinkStrategy;
-import org.junit.Assert;
-
-public class AutoAckTopicTest {
-
-   public static Link getLinkByTitle(LinkStrategy strategy, ClientResponse response, String title) {
-      return response.getLinkHeader().getLinkByTitle(title);
-   }
-
-   //todo fix
-   //@Test
-   public void testSuccessFirst() throws Exception {
-      ClientRequest request = new ClientRequest("http://localhost:9095/topics/jms.topic.chat");
-
-      ClientResponse response = request.head();
-      Assert.assertEquals("*****", 200, response.getStatus());
-      Link sender = getLinkByTitle(null, response, "create");
-      Link subscriptions = getLinkByTitle(null, response, "subscriptions");
-
-       /*
-      ClientResponse res = subscriptions.request().post();
-      Assert.assertEquals(201, res.getStatus());
-      Link sub1 = res.getLocation();
-      Assert.assertNotNull(sub1);
-      Link consumeNext1 = MessageTestBase.getLinkByTitle(manager.getTopicManager().getLinkStrategy(), res, "consume-next");
-      Assert.assertNotNull(consumeNext1);
-      System.out.println("consumeNext1: " + consumeNext1);
-
-
-      res = subscriptions.request().post();
-      Assert.assertEquals(201, res.getStatus());
-      Link sub2 = res.getLocation();
-      Assert.assertNotNull(sub2);
-      Link consumeNext2 = MessageTestBase.getLinkByTitle(manager.getTopicManager().getLinkStrategy(), res, "consume-next");
-      Assert.assertNotNull(consumeNext1);
-
-
-      res = sender.request().body("text/plain", Integer.toString(1)).post();
-      Assert.assertEquals(201, res.getStatus());
-      res = sender.request().body("text/plain", Integer.toString(2)).post();
-      Assert.assertEquals(201, res.getStatus());
-
-      res = consumeNext1.request().post(String.class);
-      Assert.assertEquals(200, res.getStatus());
-      Assert.assertEquals("1", res.getEntity(String.class));
-      consumeNext1 = MessageTestBase.getLinkByTitle(manager.getTopicManager().getLinkStrategy(), res, "consume-next");
-
-      res = consumeNext1.request().post(String.class);
-      Assert.assertEquals(200, res.getStatus());
-      Assert.assertEquals("2", res.getEntity(String.class));
-      consumeNext1 = MessageTestBase.getLinkByTitle(manager.getTopicManager().getLinkStrategy(), res, "consume-next");
-
-      res = consumeNext2.request().post(String.class);
-      Assert.assertEquals(200, res.getStatus());
-      Assert.assertEquals("1", res.getEntity(String.class));
-      consumeNext2 = MessageTestBase.getLinkByTitle(manager.getTopicManager().getLinkStrategy(), res, "consume-next");
-
-      res = consumeNext2.request().post(String.class);
-      Assert.assertEquals(200, res.getStatus());
-      Assert.assertEquals("2", res.getEntity(String.class));
-      consumeNext2 = MessageTestBase.getLinkByTitle(manager.getTopicManager().getLinkStrategy(), res, "consume-next");
-      Assert.assertEquals(204, sub1.request().delete().getStatus());
-      Assert.assertEquals(204, sub2.request().delete().getStatus());
-      */
-   }
-
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/jms-to-rest/README.txt
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/jms-to-rest/README.txt b/examples/broker-features/standard/rest/jms-to-rest/README.txt
deleted file mode 100644
index f012d94..0000000
--- a/examples/broker-features/standard/rest/jms-to-rest/README.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-System Requirements:
-You will need JDK 1.6 and Maven to run this example.  This example has been tested with Maven 2.2.1.  It may or may not work 
-with earlier or later versions of Maven.
-
-
-This is an example of mixing JMS producers and consumers with REST producers and consumers.  The REST clients have been
-written in both Java using RESTEasy's client library and within the Python language.  You will need Python 2.6.1 or higher
-to be able to run the Python clients.
-
-To run the example you will need 5 shell-script windows (or you'll need to run 4 processes in background)
-
-Step 1:
-$ mvn jetty:run
-
-This will bring up ActiveMQ Artemis and the ActiveMQ Artemis REST Interface.
-
-Step 2:
-$ mvn exec:java -Dexec.mainClass="RestReceive"
-
-This will bring up a Java REST client that is continuously pulling the server through a consume-next (see doco for details).
-
-Step 3:
-$ mvn exec:java -Dexec.mainClass="JmsReceive"
-
-This will bring up a Java JMS consumer that is using the MessageListener interface to consume messages.  It will
-extract a Order instance from the JMS Message it receives.
-
-Step 4:
-
-$ python receiveOrder.py
-
-This runs a very simple Python program to consume messages
-
-Step 5:
-Use one of these three commands to post messages to the system.  One of the receive clients will consume the message.
-
-$ mvn exec:java -Dexec.mainClass="JmsSend"
-
-A JMS client will create an Order object and send it to the queue.  You'll see one of the 4 clients receive the message.
-Notice that the REST clients automatically cause the Order object to be transformed on the server and passed as XML
-to the REST client.
-
-$ mvn exec:java -Dexec.mainClass="RestSend"
-
-THis is a REST client that uses the Acknowledgement protocol to receive a message from the queue.
-
-$ python postOrder.py
-
-This is a Python client that posts one message to the queue RESTfully (of course ;) )

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/6b17d966/examples/broker-features/standard/rest/jms-to-rest/pom.xml
----------------------------------------------------------------------
diff --git a/examples/broker-features/standard/rest/jms-to-rest/pom.xml b/examples/broker-features/standard/rest/jms-to-rest/pom.xml
deleted file mode 100644
index ecc94dc..0000000
--- a/examples/broker-features/standard/rest/jms-to-rest/pom.xml
+++ /dev/null
@@ -1,170 +0,0 @@
-<?xml version='1.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.
--->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-   <modelVersion>4.0.0</modelVersion>
-   <parent>
-      <groupId>org.apache.activemq.examples.rest</groupId>
-      <artifactId>artemis-rests-pom</artifactId>
-      <version>1.0.1-SNAPSHOT</version>
-   </parent>
-   <artifactId>mixed-jms-rest</artifactId>
-   <packaging>war</packaging>
-   <name>Mixed JMS and REST Producers/Consumers</name>
-
-   <properties>
-      <activemq.basedir>${project.basedir}/../../../../..</activemq.basedir>
-   </properties>
-
-   <repositories>
-      <repository>
-         <id>jboss</id>
-         <url>http://repository.jboss.org/nexus/content/groups/public/</url>
-      </repository>
-   </repositories>
-
-   <profiles>
-      <profile>
-         <id>example</id>
-         <build>
-            <finalName>order-flow</finalName>
-            <plugins>
-               <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-surefire-plugin</artifactId>
-                  <configuration>
-                     <skip>true</skip>
-                  </configuration>
-                  <executions>
-                     <execution>
-                        <id>surefire-it</id>
-                        <phase>integration-test</phase>
-                        <goals>
-                           <goal>test</goal>
-                        </goals>
-                        <configuration>
-                           <skip>false</skip>
-                        </configuration>
-                     </execution>
-                  </executions>
-               </plugin>
-               <plugin>
-                  <groupId>org.codehaus.mojo</groupId>
-                  <artifactId>exec-maven-plugin</artifactId>
-                  <version>1.1</version>
-                  <executions>
-                     <execution>
-                        <goals>
-                           <goal>java</goal>
-                        </goals>
-                     </execution>
-                  </executions>
-               </plugin>
-               <plugin>
-                  <groupId>org.mortbay.jetty</groupId>
-                  <artifactId>maven-jetty-plugin</artifactId>
-                  <version>6.1.15</version>
-                  <configuration>
-                     <!-- By default the artifactId is taken, override it with something simple -->
-                     <contextPath>/</contextPath>
-                     <scanIntervalSeconds>2</scanIntervalSeconds>
-                     <stopKey>foo</stopKey>
-                     <stopPort>9999</stopPort>
-                     <connectors>
-                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
-                           <port>9095</port>
-                           <maxIdleTime>60000</maxIdleTime>
-                        </connector>
-                     </connectors>
-                  </configuration>
-                  <executions>
-                     <execution>
-                        <id>start-jetty</id>
-                        <phase>pre-integration-test</phase>
-                        <goals>
-                           <goal>run</goal>
-                        </goals>
-                        <configuration>
-                           <scanIntervalSeconds>0</scanIntervalSeconds>
-                           <daemon>true</daemon>
-                        </configuration>
-                     </execution>
-                     <execution>
-                        <id>stop-jetty</id>
-                        <phase>post-integration-test</phase>
-                        <goals>
-                           <goal>stop</goal>
-                        </goals>
-                     </execution>
-                  </executions>
-               </plugin>
-            </plugins>
-         </build>
-      </profile>
-   </profiles>
-   <dependencies>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-core-client</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-server</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-jms-client</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq</groupId>
-         <artifactId>artemis-jms-server</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>io.netty</groupId>
-         <artifactId>netty-all</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.geronimo.specs</groupId>
-         <artifactId>geronimo-jms_2.0_spec</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.apache.activemq.rest</groupId>
-         <artifactId>artemis-rest</artifactId>
-         <version>${project.version}</version>
-      </dependency>
-      <dependency>
-         <groupId>org.jboss.resteasy</groupId>
-         <artifactId>resteasy-jaxrs</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>org.jboss.resteasy</groupId>
-         <artifactId>resteasy-jaxb-provider</artifactId>
-      </dependency>
-      <dependency>
-         <groupId>junit</groupId>
-         <artifactId>junit</artifactId>
-         <scope>test</scope>
-      </dependency>
-   </dependencies>
-</project>


Mime
View raw message