Removing Aeroegear
Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/4334fcd3 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/4334fcd3 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/4334fcd3 Branch: refs/heads/artemis-1009 Commit: 4334fcd30b4f06e58c2c0a0ee5a1d3f4e1962aaf Parents: a98b280 Author: Clebert Suconic <[email protected]> Authored: Mon Feb 6 21:17:39 2017 -0500 Committer: Clebert Suconic <[email protected]> Committed: Wed Mar 1 10:54:45 2017 -0500 ---------------------------------------------------------------------- artemis-distribution/pom.xml | 5 - .../activemq/artemis/ActiveMQWebLogger.java | 5 +- docs/user-manual/en/SUMMARY.md | 1 - docs/user-manual/en/aerogear-integration.md | 104 ----- examples/features/sub-modules/aerogear/pom.xml | 115 ------ .../features/sub-modules/aerogear/readme.html | 157 -------- .../artemis/jms/example/AerogearExample.java | 76 ---- .../main/resources/activemq/server0/broker.xml | 76 ---- .../aerogear/src/main/resources/jndi.properties | 20 - examples/features/sub-modules/pom.xml | 1 - .../aerogear-chat/aerogear-chat.css | 102 ----- .../aerogear-chat/aerogear-chat.js | 116 ------ .../aerogear-chat/aerogear-index.html | 97 ----- .../aerogear-chat/aerogear.min.js | 19 - .../stomp-websockets/aerogear-chat/stomp.js | 392 ------------------- .../activemq-aerogear-integration/pom.xml | 75 ---- .../aerogear/ActiveMQAeroGearBundle.java | 47 --- .../aerogear/ActiveMQAeroGearLogger.java | 70 ---- .../aerogear/AeroGearConnectorService.java | 367 ----------------- .../AeroGearConnectorServiceFactory.java | 48 --- .../integration/aerogear/AeroGearConstants.java | 83 ---- pom.xml | 6 - tests/integration-tests/pom.xml | 5 - .../aerogear/AeroGearBasicServerTest.java | 350 ----------------- 24 files changed, 1 insertion(+), 2336 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/artemis-distribution/pom.xml ---------------------------------------------------------------------- diff --git a/artemis-distribution/pom.xml b/artemis-distribution/pom.xml index 7d5cc49..7a5b637 100644 --- a/artemis-distribution/pom.xml +++ b/artemis-distribution/pom.xml @@ -82,11 +82,6 @@ <artifactId>artemis-rest</artifactId> <version>${project.version}</version> </dependency> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>artemis-aerogear-integration</artifactId> - <version>${project.version}</version> - </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>artemis-web</artifactId> http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/artemis-web/src/main/java/org/apache/activemq/artemis/ActiveMQWebLogger.java ---------------------------------------------------------------------- diff --git a/artemis-web/src/main/java/org/apache/activemq/artemis/ActiveMQWebLogger.java b/artemis-web/src/main/java/org/apache/activemq/artemis/ActiveMQWebLogger.java index e4fd854..ae3592e 100644 --- a/artemis-web/src/main/java/org/apache/activemq/artemis/ActiveMQWebLogger.java +++ b/artemis-web/src/main/java/org/apache/activemq/artemis/ActiveMQWebLogger.java @@ -41,9 +41,6 @@ import java.io.File; @MessageLogger(projectCode = "AMQ") public interface ActiveMQWebLogger extends BasicLogger { - /** - * The aerogear logger. - */ ActiveMQWebLogger LOGGER = Logger.getMessageLogger(ActiveMQWebLogger.class, ActiveMQWebLogger.class.getPackage().getName()); @LogMessage(level = Logger.Level.INFO) @@ -57,4 +54,4 @@ public interface ActiveMQWebLogger extends BasicLogger { @LogMessage(level = Logger.Level.WARN) @Message(id = 244003, value = "Temporary file not deleted on shutdown: {0}", format = Message.Format.MESSAGE_FORMAT) void tmpFileNotDeleted(File tmpdir); -} \ No newline at end of file +} http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/docs/user-manual/en/SUMMARY.md ---------------------------------------------------------------------- diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md index b612a5e..198e1fb 100644 --- a/docs/user-manual/en/SUMMARY.md +++ b/docs/user-manual/en/SUMMARY.md @@ -51,7 +51,6 @@ * [Embedding Apache ActiveMQ Artemis](embedding-activemq.md) * [Apache Karaf](karaf.md) * [Spring Integration](spring-integration.md) -* [AeroGear Integration](aerogear-integration.md) * [CDI Integration](cdi-integration.md) * [Intercepting Operations](intercepting-operations.md) * [Protocols and Interoperability](protocols-interoperability.md) http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/docs/user-manual/en/aerogear-integration.md ---------------------------------------------------------------------- diff --git a/docs/user-manual/en/aerogear-integration.md b/docs/user-manual/en/aerogear-integration.md deleted file mode 100644 index 0dbafb2..0000000 --- a/docs/user-manual/en/aerogear-integration.md +++ /dev/null @@ -1,104 +0,0 @@ -# AeroGear Integration - -AeroGears push technology provides support for different push -notification technologies like Google Cloud Messaging, Apple's APNs or -Mozilla's SimplePush. Apache ActiveMQ Artemis allows you to configure a Connector -Service that will consume messages from a queue and forward them to an -AeroGear push server and subsequently sent as notifications to mobile -devices. - -## Configuring an AeroGear Connector Service - -AeroGear Connector services are configured in the connector-services -configuration: - - <connector-service name="aerogear-connector"> - <factory-class>org.apache.activemq.artemis.integration.aerogear.AeroGearConnectorServiceFactory</factory-class> - <param key="endpoint" value="endpoint"/> - <param key="queue" value="jms.queue.aerogearQueue"/> - <param key="application-id" value="an applicationid"/> - <param key="master-secret" value="a mastersecret"/> - </connector-service> - <address-setting match="jms.queue.lastValueQueue"> - <last-value-queue>true</last-value-queue> - </address-setting> - - -Shown are the required params for the connector service and are: - -- `endpoint`. The endpoint or URL of you AeroGear application. - -- `queue`. The name of the queue to consume from. - -- `application-id`. The application id of your mobile application in - AeroGear. - -- `master-secret`. The secret of your mobile application in AeroGear. - -As well as these required parameters there are the following optional -parameters - -- `ttl`. The time to live for the message once AeroGear receives it. - -- `badge`. The badge the mobile app should use for the notification. - -- `sound`. The sound the mobile app should use for the notification. - -- `filter`. A message filter(selector) to use on the connector. - -- `retry-interval`. If an error occurs on send, how long before we try - again to connect. - -- `retry-attempts`. How many times we should try to reconnect after an - error. - -- `variants`. A comma separated list of variants that should get the - message. - -- `aliases`. A list of aliases that should get the message. - -- `device-types`. A list of device types that should get the messag. - -More in depth explanations of the AeroGear related parameters can be -found in the [AeroGear Push docs](http://aerogear.org/push/) - -## How to send a message for AeroGear - -To send a message intended for AeroGear simply send a JMS Message and -set the appropriate headers, like so - -``` java -Message message = session.createMessage(); - -message.setStringProperty("AEROGEAR_ALERT", "Hello this is a notification from ActiveMQ"); - -producer.send(message); -``` - - -The 'AEROGEAR_ALERT' property will be the alert sent to the mobile -device. - -> **Note** -> -> If the message does not contain this property then it will be simply -> ignored and left on the queue - -Its also possible to override any of the other AeroGear parameters by -simply setting them on the message, for instance if you wanted to set -ttl of a message you would: - -``` java -message.setIntProperty("AEROGEAR_TTL", 1234); -``` - - -or if you wanted to set the list of variants you would use: - -``` java -message.setStringProperty("AEROGEAR_VARIANTS", "variant1,variant2,variant3"); -``` -``` - -Again refer to the AeroGear documentation for a more in depth view on -how to use these settings http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/examples/features/sub-modules/aerogear/pom.xml ---------------------------------------------------------------------- diff --git a/examples/features/sub-modules/aerogear/pom.xml b/examples/features/sub-modules/aerogear/pom.xml deleted file mode 100644 index 8c92feb..0000000 --- a/examples/features/sub-modules/aerogear/pom.xml +++ /dev/null @@ -1,115 +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.modules</groupId> - <artifactId>broker-modules</artifactId> - <version>2.0.0-SNAPSHOT</version> - </parent> - - <properties> - <endpoint /> - <applicationid /> - <mastersecret /> - <activemq.basedir>${project.basedir}/../../../..</activemq.basedir> - </properties> - - <artifactId>aerogear</artifactId> - <packaging>jar</packaging> - <name>ActiveMQ Artemis JMS AeroGear Example</name> - - <dependencies> - <dependency> - <groupId>org.apache.activemq</groupId> - <artifactId>artemis-cli</artifactId> - <version>${project.version}</version> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.activemq</groupId> - <artifactId>artemis-maven-plugin</artifactId> - <executions> - <execution> - <id>create</id> - <goals> - <goal>create</goal> - </goals> - <configuration> - <ignore>${noServer}</ignore> - <!-- this list was extracted from mvn dependency:tree on integration/aerogear --> - <libListWithDeps> - <param>org.apache.activemq:artemis-aerogear-integration:${project.version}</param> - </libListWithDeps> - </configuration> - </execution> - <execution> - <id>start</id> - <goals> - <goal>cli</goal> - </goals> - <configuration> - <ignore>${noServer}</ignore> - <spawn>true</spawn> - <testURI>tcp://localhost:61616</testURI> - <args> - <param>run</param> - </args> - </configuration> - </execution> - <execution> - <id>runClient</id> - <goals> - <goal>runClient</goal> - </goals> - <configuration> - <clientClass>org.apache.activemq.artemis.jms.example.AerogearExample</clientClass> - </configuration> - </execution> - <execution> - <id>stop</id> - <goals> - <goal>cli</goal> - </goals> - <configuration> - <ignore>${noServer}</ignore> - <args> - <param>stop</param> - </args> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.activemq.examples.modules</groupId> - <artifactId>aerogear</artifactId> - <version>${project.version}</version> - </dependency> - </dependencies> - </plugin> - </plugins> - </build> - -</project> http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/examples/features/sub-modules/aerogear/readme.html ---------------------------------------------------------------------- diff --git a/examples/features/sub-modules/aerogear/readme.html b/examples/features/sub-modules/aerogear/readme.html deleted file mode 100644 index 4d0c964..0000000 --- a/examples/features/sub-modules/aerogear/readme.html +++ /dev/null @@ -1,157 +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 AeroGear 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 AeroGear Example</h1> - - - <pre>To run the example, simply type <b>mvn verify</b> from this directory, <br>or <b>mvn -PnoServer verify</b> if you want to start and create the server manually.</pre> - - <p>This example shows how you can send a message to a mobile device by leveraging <a href="http://aerogear.org/push/">AeroGears push</a> technology which - provides support for different push notification technologies like Google Cloud Messaging, Apple's APNs or - Mozilla's SimplePush.</p> - - <p>For this example you will need an AeroGear Application running somewhere, a good way to do this is to deploy the - Push Application on <href a="">openshift</href>, you can follow the AeroGear Push 0.X Quickstart.</p> - - <p>Once you have created your AeroGear Push Application you can create a mobile application. Simply log into the application - on the web and create a new mobile application by clicking the 'create' button. Once created you will see an application id - and a master secret, you will need the later to run the example.</p> - - <p>lastly you will need to create a variant. For this example we will be using Android so you will need to create a google project, - this <a href="http://aerogear.org/docs/guides/aerogear-push-android/google-setup/">article</a> explains how to do this. - Once created click on your app then click 'add' to add a variant. choose 'google cloud messaging', enter your google - API key and the project number from your google project and click create</p> - - <p>Now before we run the example we need a mobile application to receive it. Writing a mobile app is beyond the scope - of this example but for testing purposes we have supplied an Android app you can use, simply install on your android phone. - It can be found <a href="http://downloads.jboss.org/hornetq/HornetQAeroGear.apk">here</a>. For a more in depth mobile - app example visit the AeroGear site.</p> - - <p>Once you have installed the mobile app you will need to configure the following:</p> - <p>AeroGear Unified Push URL : This is the URL where your aerogear server is running, something like http://myapp-mydomain.rhcloud.com - AeroGear Variant ID : This is the ID of the variant you created in AeroGear - AeroGear Variant Secret : This is the secret for your variant - GCM Sender ID : this is the Google project Number you created on Google - Variant : you can use this to target messages if needed. - </p> - - <p>Once you set all these correctly you should get a message saying your mobile app is registered, if you log into - your AeroGear app you should see it registered with the variant.</p> - - - <p>Now to run the example simply run the following command - 'mvn -Dendpoint=my aerogear url -Dapplicationid=my application id -Dmastersecret=my master secret -Djsse.enableSNIExtension=false clean verify'. - If you arent using java 7 you can omit the 'jsse.enableSNIExtension=false'</p> - - <p>You should see something like this in your ActiveMQServer</p> - <ol> - <pre class="prettyprint"> - <code> - Dec 04, 2013 3:25:39 PM org.jboss.aerogear.unifiedpush.SenderClient submitPayload - INFO: HTTP Response code from UnifiedPush Server: 302 - Dec 04, 2013 3:25:39 PM org.jboss.aerogear.unifiedpush.SenderClient submitPayload - INFO: Performing redirect to 'https://myapp-mydomain.rhcloud.com/rest/sender/' - Dec 04, 2013 3:25:40 PM org.jboss.aerogear.unifiedpush.SenderClient submitPayload - INFO: HTTP Response code from UnifiedPush Server: 200 - </code> - </pre> - </ol> - <p>And on your mobile app you should see a message from ActiveMQ</p> - - <p>Now lets look a bit more closely at the configuration in broker.xml</p> - <ol> - <pre class="prettyprint"> - <code> - <queues> - <queue name="jms.queue.exampleQueue"> - <address>jms.queue.exampleQueue</address> - </queue> - </queues> - - <connector-services> - <connector-service name="aerogear-connector"> - <factory-class>org.apache.activemq.integration.aerogear.AeroGearConnectorServiceFactory</factory-class> - <param key="endpoint" value="${endpoint}"/> - <param key="queue" value="jms.queue.exampleQueue"/> - <param key="application-id" value="${applicationid}"/> - <param key="master-secret" value="${mastersecret}"/> - </connector-service> - </connector-services> - </code> - </pre> - </ol> - <p>Firstly you will see that we have to create a core queue so it is available when the connector is started, the following are mandatory parameters:</p> - <ol> - <li>endpoint - The endpoint or URL of you AeroGear application</li> - <li>queue - The name of the queue to consume from</li> - <li>application-id - The application id of your mobile application in AeroGear</li> - <li>master-secret - the secret of your mobile application in AeroGear</li> - </ol> - <p>as well as those there are also the following optional parameters</p> - <ol> - <li>ttl - The time to live for the message once AeroGear receives it</li> - <li>badge - The badge the mobile app should use for the notification</li> - <li>sound - The sound the mobile app should use for the notification</li> - <li>filter - A message filter(selector) to use on the connector</li> - <li>retry-interval - If an error occurs on send, how long before we try again</li> - <li>retry-attempts - How many times we should try to reconnect after an error</li> - <li>variants - A comma separated list of variants that should get the message</li> - <li>aliases - A list of aliases that should get the message</li> - <li>device-types - A list of device types that should get the message</li> - </ol> - <p>More in depth explanations of these can be found in the AeroGear docs.</p> - <p>Now lets look at a snippet of code we used to send the message for our JMS client</p> - <pre class="prettyprint"> - <code> - Queue queue = (Queue)initialContext.lookup("queue/exampleQueue"); - - // Step 3. Perform a lookup on the Connection Factory - ConnectionFactory cf = (ConnectionFactory)initialContext.lookup("/ConnectionFactory"); - - // Step 4.Create a JMS Connection - connection = cf.createConnection(); - - // Step 5. Create a JMS Session - Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - - // Step 6. Create a JMS Message Producer - MessageProducer producer = session.createProducer(queue); - - // Step 7. Create a Text Message - Message message = session.createMessage(); - - message.setStringProperty("AEROGEAR_ALERT", "Hello this is a notification from ActiveMQ"); - - producer.send(message); - </code> - </pre> - <p> The most important thing here is string propert we have set on the message, i.e. 'AEROGEAR_ALERT'. This is the - actual alert that is sent via AeroGear</p> - <p>As well as the alert itself you can override any of the above optional parameters in the same fashionby using the - following propert names: AEROGEAR_SOUND,AEROGEAR_BADGE,AEROGEAR_TTL,AEROGEAR_VARIANTS,AEROGEAR_ALIASES and AEROGEAR_DEVICE_TYPES</p> - </body> -</html> http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/examples/features/sub-modules/aerogear/src/main/java/org/apache/activemq/artemis/jms/example/AerogearExample.java ---------------------------------------------------------------------- diff --git a/examples/features/sub-modules/aerogear/src/main/java/org/apache/activemq/artemis/jms/example/AerogearExample.java b/examples/features/sub-modules/aerogear/src/main/java/org/apache/activemq/artemis/jms/example/AerogearExample.java deleted file mode 100644 index 7d1a662..0000000 --- a/examples/features/sub-modules/aerogear/src/main/java/org/apache/activemq/artemis/jms/example/AerogearExample.java +++ /dev/null @@ -1,76 +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 javax.jms.Connection; -import javax.jms.ConnectionFactory; -import javax.jms.Message; -import javax.jms.MessageProducer; -import javax.jms.Queue; -import javax.jms.Session; -import javax.naming.InitialContext; - -/** - * A simple JMS Queue example that creates a producer and consumer on a queue and sends then receives a message. - */ -public class AerogearExample { - - public static void main(final String[] args) throws Exception { - Connection connection = null; - InitialContext initialContext = null; - try { - // Step 1. Create an initial context to perform the JNDI lookup. - initialContext = new InitialContext(); - - // Step 2. Perfom a lookup on the queue - Queue queue = (Queue) initialContext.lookup("queue/exampleQueue"); - - // Step 3. Perform a lookup on the Connection Factory - ConnectionFactory cf = (ConnectionFactory) initialContext.lookup("ConnectionFactory"); - - // Step 4.Create a JMS Connection - connection = cf.createConnection(); - - // Step 5. Create a JMS Session - Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); - - // Step 6. Create a JMS Message Producer - MessageProducer producer = session.createProducer(queue); - - // Step 7. Create a Text Message - Message message = session.createMessage(); - - message.setStringProperty("AEROGEAR_ALERT", "Hello this is a notification from ActiveMQ"); - - producer.send(message); - - System.out.println("Sent message"); - - System.out.println("now check your mobile app and press enter"); - - System.in.read(); - } finally { - // Step 12. Be sure to close our JMS resources! - if (initialContext != null) { - initialContext.close(); - } - if (connection != null) { - connection.close(); - } - } - } -} http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/examples/features/sub-modules/aerogear/src/main/resources/activemq/server0/broker.xml ---------------------------------------------------------------------- diff --git a/examples/features/sub-modules/aerogear/src/main/resources/activemq/server0/broker.xml b/examples/features/sub-modules/aerogear/src/main/resources/activemq/server0/broker.xml deleted file mode 100644 index 039e3c9..0000000 --- a/examples/features/sub-modules/aerogear/src/main/resources/activemq/server0/broker.xml +++ /dev/null @@ -1,76 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- -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"> - - - - <core xmlns="urn:activemq:core"> - - <bindings-directory>./data/bindings</bindings-directory> - - <journal-directory>./data/journal</journal-directory> - - <large-messages-directory>./data/largemessages</large-messages-directory> - - <paging-directory>./data/paging</paging-directory> - - <!-- Acceptors --> - <acceptors> - <acceptor name="netty-acceptor">tcp://localhost:61616</acceptor> - </acceptors> - - <!-- We need to create a core queue for the JMS queue explicitly because the connector will be deployed - before the JMS queue is deployed, so the first time, it otherwise won't find the queue --> - - - <connector-services> - <connector-service name="aerogear-connector"> - <factory-class>org.apache.activemq.artemis.integration.aerogear.AeroGearConnectorServiceFactory</factory-class> - <param key="endpoint" value="${endpoint}"/> - <param key="queue" value="exampleQueue"/> - <param key="application-id" value="${applicationid}"/> - <param key="master-secret" value="${mastersecret}"/> - </connector-service> - </connector-services> - - <!-- Other config --> - - <security-settings> - <!--security for example queue--> - <security-setting match="exampleQueue"> - <permission roles="guest" type="createDurableQueue"/> - <permission roles="guest" type="deleteDurableQueue"/> - <permission roles="guest" type="createNonDurableQueue"/> - <permission roles="guest" type="deleteNonDurableQueue"/> - <permission roles="guest" type="consume"/> - <permission roles="guest" type="send"/> - </security-setting> - </security-settings> - <addresses> - <address name="exampleQueue"> - <multicast> - <queue name="exampleQueue"/> - </multicast> - <anycast> - <queue name="jms.queue.exampleQueue"/> - </anycast> - </address> - </addresses> - </core> -</configuration> http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/examples/features/sub-modules/aerogear/src/main/resources/jndi.properties ---------------------------------------------------------------------- diff --git a/examples/features/sub-modules/aerogear/src/main/resources/jndi.properties b/examples/features/sub-modules/aerogear/src/main/resources/jndi.properties deleted file mode 100644 index 93537c4..0000000 --- a/examples/features/sub-modules/aerogear/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 -queue.queue/exampleQueue=exampleQueue http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/examples/features/sub-modules/pom.xml ---------------------------------------------------------------------- diff --git a/examples/features/sub-modules/pom.xml b/examples/features/sub-modules/pom.xml index ef47365..dbbd36a 100644 --- a/examples/features/sub-modules/pom.xml +++ b/examples/features/sub-modules/pom.xml @@ -49,7 +49,6 @@ under the License. <profile> <id>release</id> <modules> - <module>aerogear</module> <module>artemis-ra-rar</module> </modules> </profile> http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-chat.css ---------------------------------------------------------------------- diff --git a/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-chat.css b/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-chat.css deleted file mode 100644 index 1a75b9f..0000000 --- a/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-chat.css +++ /dev/null @@ -1,102 +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. - */ - -* { - margin: 0; - padding: 0; -} - -body { - font-family: 'Helvetica Neue', Helvetica, Verdana, Arial, sans-serif; - padding: 10px; -} - -#disconnect { - display: none; -} - -#unsubscribe { - display: none; -} - -#subscribe { - display: none; -} - -#debug { - background-color: #F0F0F0; - font-size: 12px; - height: 75%; - overflow: auto; - padding: 10px; - position: absolute; - right: 10px; - top: 10px; - width: 250px; - z-index: 100; -} - -#send_form { - bottom: 5px; - position: absolute; - width: 99%; -} - -#send_form #send_form_input { - border: 1px solid #CCC; - font-size: 16px; - height: 20px; - padding: 5px; - width: 98%; -} - -#send_form input[disabled] { - background-color: #EEE; -} - -#messages { - bottom: 25px; - left: 0; - overflow: auto; - padding: 5px; - right: 0; - top: 2em; - z-index: -1; -} - -.message { - width: 95%; -} - -form dt { - clear:both; - width:19%; - float:left; - text-align:right; -} - -form dd { - float:left; - width:80%; - margin:0 0 0.5em 0.25em; -} - -input { - width: 320px; -} http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-chat.js ---------------------------------------------------------------------- diff --git a/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-chat.js b/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-chat.js deleted file mode 100644 index a4fe2e8..0000000 --- a/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-chat.js +++ /dev/null @@ -1,116 +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. - */ - -$( document ).ready( function () { - - var client, - destination; - - $( '#connect_form' ).submit( function ( e ) { - - e.preventDefault(); - - var url = $( '#connect_url' ).val(), - loginName = $( '#connect_login' ).val(), - passcode = $( '#connect_passcode' ).val(); - - destination = $( '#destination' ).val(); - - client = AeroGear.Notifier({ - name: 'stomp', - type: 'stompws', - settings: { - connectURL: url - } - }).clients.stomp; - - var debug = function ( str ) { - $( '#debug' ).append( str + "\n" ); - }, - onconnect = function () { - debug( 'connected to Stomp'); - $( '#connect' ).fadeOut({ - duration: 'fast' - }); - $( '#disconnect' ).fadeIn(); - $( '#send_form_input' ).removeAttr( 'disabled' ); - $( '#unsubscribe' ).fadeIn(); - - client.debug( debug ); - - var onsubscribe = function ( message ) { - $( '#messages' ).append( "<p>" + message.body + "</p>\n" ); - }; - - client.subscribe({ - address: destination, - callback: onsubscribe - }); - }; - - client.connect({ - login: loginName, - password: passcode, - onConnect: onconnect - }); - }); - - $( '#disconnect_form' ).submit( function ( e ) { - - e.preventDefault(); - - var ondisconnect = function () { - $( '#disconnect' ).fadeOut({ - duration: 'fast' - }); - $( '#unsubscribe' ).fadeOut({ - duration: 'fast' - }); - $( '#connect' ).fadeIn(); - $( '#send_form_input' ).attr( 'disabled', 'disabled' ); - $( '#messages' ).empty(); - $( '#debug' ).empty(); - }; - - client.disconnect( ondisconnect ); - }); - - $( '#unsubscribe_form' ).submit( function ( e ) { - - e.preventDefault(); - - client.unsubscribe( [{ address: destination }] ); - - $( '#unsubscribe' ).fadeOut({ - duration: 'fast' - }); - }); - - $( '#send_form' ).submit( function ( e ) { - - e.preventDefault(); - - var text = $( '#send_form_input' ).val(); - if (text) { - client.send( destination, text ); - $('#send_form_input').val( '' ); - } - }); - -}); http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/4334fcd3/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-index.html ---------------------------------------------------------------------- diff --git a/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-index.html b/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-index.html deleted file mode 100644 index 434be6b..0000000 --- a/examples/protocols/stomp/stomp-websockets/aerogear-chat/aerogear-index.html +++ /dev/null @@ -1,97 +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> -<html> - -<head> - <title>Chat Example Using Stomp Over Web Sockets</title> - <link rel="stylesheet" href="aerogear-chat.css" /> - <script src='http://code.jquery.com/jquery-1.9.1.min.js'></script> - <script src='stomp.js'></script> - <script src='aerogear.min.js'></script> - <script src='aerogear-chat.js'></script> - <script> - $(document).ready(function() { - var supported = ("WebSocket" in window); - if(!supported) { - var msg = "Your browser does not support Web Sockets. This example will not work properly.<br>"; - msg += "Please use a Web Browser with Web Sockets support (WebKit or Google Chrome)."; - $("#connect").html(msg); - } - }); - </script> -</head> -<body> - - <div id='connect'> - <form id='connect_form'> - <dl> - <dt> - <label for=connect_url>Server URL</label> - </dt> - <dd> - <input name=url id='connect_url' value='ws://localhost:61614/stomp'> - </dd> - <dt> - <label for=connect_login>Login</label> - </dt> - <dd> - <input id='connect_login' placeholder="User Login" value="guest"> - </dd> - <dt> - <label for=connect_passcode>Password</label> - </dt> - <dd> - <input id='connect_passcode' type=password placeholder="User Password" value="guest"> - </dd> - <dt> - <label for=destination>Destination</label> - </dt> - <dd> - <input id='destination' placeholder="Destination" value="jms.topic.chat"> - </dd> - <dt> </dt> - <dd> - <input type="submit" id='connect_submit' value="Connect"> - </dd> - </dl> - </form> - - <p>Use the form above to connect to the Stomp server and subscribe to the destination.</p> - <p>Once connected, you can send messages to the destination with the text field at the bottom of this page</p> - </div> - <div id="disconnect"> - <form id='disconnect_form'> - <input type="submit" id='disconnect_submit' value="Disconnect"> - </form> - </div> - <div id="unsubscribe"> - <form id='unsubscribe_form'> - <input type="submit" id='unsubscribe_submit' value="Unsubscribe"> - </form> - </div> - <pre id="debug"></pre> - <div id="messages"></div> - <form id='send_form'> - <input id='send_form_input' placeholder="Type your message here" disabled /> - </form> -</body> -</html> -
