I have changed the flag value to true, even though i am getting the same error.
`@PostConstruct
private void customizeJmsTemplate() {
// Update the jmsTemplate’s connection factory to cache the connection
CachingConnectionFactory ccf = new CachingConnectionFactory();
ccf.setTargetConnectionFactory(jmsTemplate.getConnectionFactory());
jmsTemplate.setConnectionFactory(ccf);
// By default Spring Integration uses Queues, but if you set this to true you
// will send to a PubSub+ topic destination
jmsTemplate.setPubSubDomain(true);
}
@Scheduled(fixedRate = 60000)
public void sendEvent() throws Exception {
String msg = "Hello World " + System.currentTimeMillis();
System.out.println("==========SENDING MESSAGE========== " + msg);
jmsTemplate.convertAndSend("T/tab/Singelton/Sender", msg);
}
@JmsListener(destination = "Q/tab/Multithreading/Receiver", concurrency = "3-10" )
public void handle(Message message) {
counter = counter+1;
Date receiveTime = new Date();
System.out.println(
"Consumer Process started at Received at " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS").format(receiveTime));
if (message instanceof TextMessage) {
TextMessage tm = (TextMessage) message;
try {
tm.getText();
tm.acknowledge();
System.out.println(Thread.currentThread().getId());
System.out.println("Processed ----" + counter + " so far" );
} catch (JMSException e) {
e.printStackTrace();
}
} else {
System.out.println(message.toString());
}
}
`
Error
{"app":"createachtransaction","@timestamp":"2021-09-09T16:24:39.136-07:00","logger":"com.solacesystems.jcsmp.impl.JCSMPXMLMessageProducer","level":"INFO","class":"com.solacesystems.jcsmp.impl.JCSMPXMLMessageProducer","method":"getAndProcessResponse","file":"JCSMPXMLMessageProducer.java","line":1432,"thread":"Context_3_ReactorThread","msg":"Error Response (403) - Publish ACL Denied - Topic 'T/tab/Singelton/Sender'"}

