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);


  • czajkowski
    czajkowski Member Posts: 3 ✭✭

    Hey there, thanks for posting and I hope we can help you. Please take a look at the following page and if you have any other questions please let us know. Thanks :)

  • testup
    testup Member Posts: 2

    As i understood, i have to use SolAdmin in Spring Boot. But is there any other ways?

  • RobO
    RobO Member, Employee Posts: 18 Solace Employee

    You should not have to use SolAdmin. Similar to what link was posted earlier, there is another link with available properties.

    You can set all these properties via the JMS Template. The following is an example of how you could accomplish this.

    jmsTemplate.convertAndSend(ORDER_QUEUE, order, m -> {



    m.setBooleanProperty(SupportedProperty.SOLACE_JMS_PROP_ELIDING_ELIGIBLE, true);

    return m;