diff --git a/jms-quickstart/README.md b/jms-quickstart/README.md index dc624e346c..5cdfab278c 100644 --- a/jms-quickstart/README.md +++ b/jms-quickstart/README.md @@ -4,12 +4,14 @@ This project illustrates how you can use Artemis JMS with Quarkus. ## Artemis server -First you need an Apache ActiveMQ Artemis server. You can follow the instructions from the [Apache Artemis web site](https://activemq.apache.org/components/artemis/) or run via docker using the [ArtemisCloud](https://artemiscloud.io/) container image: +In order to run the application you need an Apache ActiveMQ Artemis server. You can follow the instructions from the [Apache Artemis web site](https://activemq.apache.org/components/artemis/) or run via docker using the [ArtemisCloud](https://artemiscloud.io/) container image: ```bash docker run -it --rm -p 8161:8161 -p 61616:61616 -p 5672:5672 -e AMQ_USER=quarkus -e AMQ_PASSWORD=quarkus quay.io/artemiscloud/activemq-artemis-broker:0.1.4 ``` +Note that tests/integration-tests will utilise an in memory Artemis server and so do not require a running Artemis server. + ## Start the application The application can be started using: @@ -39,3 +41,4 @@ You can compile the application into a native binary using: and run with: `./target/jms-quickstart-1.0.0-SNAPSHOT-runner` + diff --git a/jms-quickstart/pom.xml b/jms-quickstart/pom.xml index 95d616fdc4..c27793fb87 100644 --- a/jms-quickstart/pom.xml +++ b/jms-quickstart/pom.xml @@ -19,8 +19,8 @@ 3.8.3 - true - true + false + false diff --git a/jms-quickstart/src/main/java/org/acme/jms/PriceProducer.java b/jms-quickstart/src/main/java/org/acme/jms/PriceProducer.java index 2505c95449..e906dacb01 100644 --- a/jms-quickstart/src/main/java/org/acme/jms/PriceProducer.java +++ b/jms-quickstart/src/main/java/org/acme/jms/PriceProducer.java @@ -27,7 +27,7 @@ public class PriceProducer implements Runnable { private final ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor(); void onStart(@Observes StartupEvent ev) { - scheduler.scheduleWithFixedDelay(this, 0L, 5L, TimeUnit.SECONDS); + scheduler.scheduleWithFixedDelay(this, 1L, 5L, TimeUnit.SECONDS); } void onStop(@Observes ShutdownEvent ev) {