I created a simple standalone consumer, trying to consume 4 messages sitting on the ActiveMQ. But when I started the application, it created another Queue with the same name as shown in the image below:
My Project Structure looks like this:
And code inside classes looks like the following:
class FebMessageConsumer
class FebMessageConsumerApplication
1) What's wrong in the above code?
2) Once I get above thing working,I plan on deploying it as a WAR to Apache
Tomcat 8.5. Is it like when I deploy the application or start the application as
Java Application, it's going to consume all the messages one by one? OR when I start the application, only one message will be consumed at a time and then I'll have to stop the application and then start again to consume next message?
Here's a Google Drive Link to the zipped project in case needed for reference.
https://drive.google.com/open?id=1IkULFZP-YT6u-fYRbrQetQGl1AkT85i-