I want to use JMS Queues and Topics in my java Spring boot project.
So for Topics I must use this one in application.properties
spring.jms.pub-sub-domain = true
.
Now in the same project I want to receive queues messages too, buy ActiveMQ dont see any consumer for my queue...
How can I make it works?
Sample of my JmsListener for message send from ActiveMq localhost:8161
@JmsListener(destination = "FROMACTIVEMQ")
public void getMessageFromActiveMq(TextMessage txt){
logger.info(txt);
}
What I am doing wrong? When I am using sendAndReceive method from JmsTemplate everything is going right...