In order for message to move to undelivered queue in case of maxRelivery attempts, the tibco broker expect to set a jms property JMS_TIBCO_PRESERVE_UNDELIVERED
to true
. I am not sure how to set this property after the message is consumed.
IntegrationFlows.from(Jms.messageDrivenChannelAdapter(connectionFactory)
.destination(sourceQueue)
.configureListenerContainer(spec -> {
spec.sessionTransacted(false);
spec.sessionAcknowledgeMode(Session.DUPS_OK_ACKNOWLEDGE);
})
.handle(someservice).get();