I have an MDB consumer with settings
@MessageDriven(name = "PackageReceiver", activationConfig = {
@ActivationConfigProperty(propertyName = "destinationLookup",
propertyValue = "myQueue"),
@ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode",
propertyValue = "Auto-acknowledge")
})
The message processing process can last from a few seconds to several hours.
I understand that some kind of timeout is triggered during which there is no acknowledge for the broker (there is no transaction commit)
Also I understand that there are only two acknowledge modes for MDB: Auto-acknowledge and Dups-ok-acknowledge. For both options, the message is in the queue until the end of processing the onMessage() method, and using message.acknowledge() does not have the expected effect. Please, help me solve this problem!