How to set DMQ Eligible flag in Spring Boot

testup Member Posts: 2

Hi there,

i am using solace-jms-spring-boot-starter and jmstemplate in spring boot to send messages to queue. How can i set the DMQ Eligible flag over jmstemplate? Currently all my messages have the status DMQ Eligible NO.

public void sendEvent() throws Exception {
    String msg = "Hello World " + System.currentTimeMillis();

    System.out.println("==========SENDING MESSAGE========== " + msg);

    jmsTemplate.convertAndSend(queueName, msg);