But when I did the same with an already made application on Spring + Security + Jaas, then everything stopped working. And apparently the Listener class is not working. I sent messages to this queue via ActiveMQ admin but didn't work
First I tried your TestJMSActiveMQ, I updated your spring-boot-starter-parent to version 2.4.1 instead.
I started docker run -p 8161:8161 -p 61616:61616 rmohr/activemq
I ran both client 1 and client 2.
But I did not see anything in the queues in from localhost:8161.