This commit is contained in:
Clebert Suconic 2019-06-20 11:42:00 -04:00
commit f54c299ca5
9 changed files with 55 additions and 46 deletions

View File

@ -6,18 +6,17 @@ This example shows you how to configure ActiveMQ Artemis so all messages are del
## ExclusiveQueueExample.java ## ExclusiveQueueExample.java
The broker is configured (using 'address-settings'), so that the queue is exclusive and will deliver all messages to the same The broker is configured (using `address-settings`), so that the queue is exclusive and will deliver all messages to the same
consumer consumer
```xml ```xml
<address-settings> <address-settings>
<address-setting match="my.exclusive.queue"> <address-setting match="my.exclusive.queue">
<default-exclusive-queue>true</default-exclusive-queue> <default-exclusive-queue>true</default-exclusive-queue>
</address-setting> </address-setting>
</address-settings> </address-settings>
``` ```
## ExclusiveQueueClientSideExample.java ## ExclusiveQueueClientSideExample.java
The JMS Queue is auto created from the client code and uses the `exclusive` parameter. The JMS Queue is auto created from the client code and uses the `exclusive` parameter.

View File

@ -24,7 +24,7 @@ under the License.
<parent> <parent>
<groupId>org.apache.activemq.examples.broker</groupId> <groupId>org.apache.activemq.examples.broker</groupId>
<artifactId>jms-examples</artifactId> <artifactId>jms-examples</artifactId>
<version>2.7.0-SNAPSHOT</version> <version>2.10.0-SNAPSHOT</version>
</parent> </parent>
<artifactId>netty-openssl</artifactId> <artifactId>netty-openssl</artifactId>

View File

@ -12,6 +12,6 @@ To secure your messaging application with Netty's OpenSSL, you need to configure
In the configuration, the `activemq.example.keystore` is the key store file holding the server's certificate. The `activemq.example.truststore` is the file holding the certificates which the client trusts (i.e. the server's certificate exported from activemq.example.keystore). They are generated via the following commands: In the configuration, the `activemq.example.keystore` is the key store file holding the server's certificate. The `activemq.example.truststore` is the file holding the certificates which the client trusts (i.e. the server's certificate exported from activemq.example.keystore). They are generated via the following commands:
* `keytool -genkey -keystore activemq.example.keystore -storepass secureexample -keypass secureexample -dname "CN=localhost, OU=Artemis, O=ActiveMQ, L=AMQ, S=AMQ, C=AMQ" -keyalg EC -sigalg SHA256withECDSA * `keytool -genkey -keystore activemq.example.keystore -storepass secureexample -keypass secureexample -dname "CN=localhost, OU=Artemis, O=ActiveMQ, L=AMQ, S=AMQ, C=AMQ" -keyalg EC -sigalg SHA256withECDSA`
* `keytool -export -keystore activemq.example.keystore -file activemq-jks.cer -storepass secureexample * `keytool -export -keystore activemq.example.keystore -file activemq-jks.cer -storepass secureexample`
* `keytool -import -keystore activemq.example.truststore -file activemq-jks.cer -storepass secureexample -keypass secureexample -noprompt * `keytool -import -keystore activemq.example.truststore -file activemq-jks.cer -storepass secureexample -keypass secureexample -noprompt`

View File

@ -77,6 +77,7 @@ under the License.
<module>message-group</module> <module>message-group</module>
<module>message-group2</module> <module>message-group2</module>
<module>message-priority</module> <module>message-priority</module>
<module>netty-openssl</module>
<module>no-consumer-buffering</module> <module>no-consumer-buffering</module>
<module>paging</module> <module>paging</module>
<module>pre-acknowledge</module> <module>pre-acknowledge</module>
@ -130,6 +131,7 @@ under the License.
<module>durable-subscription</module> <module>durable-subscription</module>
<module>embedded</module> <module>embedded</module>
<module>embedded-simple</module> <module>embedded-simple</module>
<module>exclusive-queue</module>
<module>expiry</module> <module>expiry</module>
<module>http-transport</module> <module>http-transport</module>
<module>interceptor</module> <module>interceptor</module>
@ -148,6 +150,7 @@ under the License.
<module>message-group</module> <module>message-group</module>
<module>message-group2</module> <module>message-group2</module>
<module>message-priority</module> <module>message-priority</module>
<module>netty-openssl</module>
<module>no-consumer-buffering</module> <module>no-consumer-buffering</module>
<module>paging</module> <module>paging</module>
<module>pre-acknowledge</module> <module>pre-acknowledge</module>
@ -165,6 +168,7 @@ under the License.
<module>shared-consumer</module> <module>shared-consumer</module>
<module>slow-consumer</module> <module>slow-consumer</module>
<module>spring-integration</module> <module>spring-integration</module>
<module>spring-boot-integration</module>
<module>ssl-enabled</module> <module>ssl-enabled</module>
<module>ssl-enabled-crl-mqtt</module> <module>ssl-enabled-crl-mqtt</module>
<module>ssl-enabled-dual-authentication</module> <module>ssl-enabled-dual-authentication</module>

View File

@ -42,18 +42,6 @@
<version>${amqp-10-jms-spring.version}</version> <version>${amqp-10-jms-spring.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.0.4.RELEASE</version>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>example</id>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -82,9 +70,14 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId> <artifactId>maven-clean-plugin</artifactId>
</plugin> </plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.0.4.RELEASE</version>
</plugin>
</plugins> </plugins>
</build> </build>
</profile> <profiles>
<profile> <profile>
<id>release</id> <id>release</id>
<build> <build>

View File

@ -1,6 +1,6 @@
# ActiveMQ Artemis Spring Boot Example # ActiveMQ Artemis Spring Boot Example
To run the example, simply type **mvn verify -Pexample** from this directory. To run the example, simply type **mvn verify** from this directory.
This example shows how to setup and run an embedded broker within a Spring Boot Application relying on [AMQP 1.0 JMS Spring Boot project](https://github.com/amqphub/amqp-10-jms-spring-boot) for configuration. This example shows how to setup and run an embedded broker within a Spring Boot Application relying on [AMQP 1.0 JMS Spring Boot project](https://github.com/amqphub/amqp-10-jms-spring-boot) for configuration.

View File

@ -1,5 +1,5 @@
# ActiveMQ Artemis Spring Example # ActiveMQ Artemis Spring Example
To run the example, simply type **mvn verify -Pexample** from this directory To run the example, simply type **mvn verify** from this directory
This examples shows how to setup and run an embedded broker within a Spring ApplicationContext using ActiveMQ Artemis along with ActiveMQ Artemis configuration files. This examples shows how to setup and run an embedded broker within a Spring ApplicationContext using ActiveMQ Artemis along with ActiveMQ Artemis configuration files.

View File

@ -122,4 +122,17 @@ under the License.
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>com.vladsch.flexmark</groupId>
<artifactId>markdown-page-generator-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>