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.
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. Setting Message Properties Thanks
You should not have to use SolAdmin. Similar to what link was posted earlier, there is another link with available properties. Message 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.setJMSCorrelationID(UUID.randomUUID().toString());
m.setJMSExpiration( 1000 );
m.setBooleanProperty(SupportedProperty.SOLACE_JMS_PROP_ELIDING_ELIGIBLE, true);
return m;
}