Review the base structure of the application
For your convenience, this scenario has been created with a base project using the Java programming language and the Apache Maven build tool.
As you review the content, you will notice that there are a lot of TODO comments. Do not remove them! These comments are used as markers for later exercises in this scenario.
1. Add JMS Dependencies
To add Spring JMS to our project all we have to do is to add the following line in
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-activemq</artifactId> <version>2.1.3.RELEASE</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency>
Along with the JMS dependencies this starter also brings in the ActiveMQ Broker. The Broker manages connections to the Queue and acts as the mediator between the application and ActiveMQ. The
jackson-databind dependency is for marshalling and unmarshalling the messages we will send. We will cover this later.
Right now the application will not compile because we are missing our Message object in the provided code. In our next step we'll fill in those required classes and we will be able to test it locally.
You have now successfully executed the first step in this scenario. In the next step we will setup the code necessary to send and receive JMS messages.