Now that we have an embedded broker and have looked at some of the commands for viewing the broker properties and statistics, let's look at how to interact with the broker using commands. In this recipe, we will look at the command for browsing messages.
In order for us to control the connection factory and send messages to the embedded broker, first we need to get the commands installed using the following JMS feature command, like we did in the previous recipe:
feature:install jms
First, let's create a connection factory for our embedded broker. We do this using the jms:create
command.