O'Reilly logo

WildFly Cookbook by Luigi Fugaro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending and receiving messages to/from a JMS queue destination

In this recipe, we will learn how to produce and consume a JMS queue message. We will use two little applications, one that produces messages, and another one that consumes messages.

Getting ready

  1. To get started, let's first create an adhoc folder to run our WildFly. In a terminal window enter the following commands:
    $ cd $WILDFLY_HOME
    $ cp -a standalone jms-std-node-2
  2. In this recipe, we will need an application to test our configuration. For this recipe, we will need the applications named jms-producer and jms-consumer, which you can find in my GitHub repository. If you skipped the Managing applications using the deployments folder recipe of Chapter 2, Running WildFly in Standalone Mode ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required