My application is using a Queue Originally, So I need to also Implement a Topic for the same application. I'm having difficulties setting up the configurations. please help guys
Just define two JmsTemplate beans
@Bean
public JmsTemplate jmsTemplate(ConnectionFactory connectionFactory) {
JmsTemplate template = new JmsTemplate(connectionFactory);
template.setPubSubDomain(false);
return template;
}
@Bean
public JmsTemplate jmsTemplatePubSub(ConnectionFactory connectionFactory) {
JmsTemplate template = new JmsTemplate(connectionFactory);
template.setPubSubDomain(true);
return template;
}
This will prevent Boot from declaring its own template