A Message Driven EJB is a special type of EJB that is responsible for listening to messages sent to JMS queues and acting upon them. Message Driven EJBs provide an easy way of interfacing with JMS queues and make full use of Java annotations to define queue settings.
In this recipe, we'll see how we can send a message to a JMS queue hosted on WildFly, and then how a Message Driven Bean will respond to the message.
In order to complete this recipe, we need to have an instance of WildFly installed locally and configured within NetBeans. We will be using the Enterprise download bundle of NetBeans as this provides all of the necessary plugins required to work with EJBs.
To send messages to a JMS queue, we first ...