OK, so this seems like a bad design to me. @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"
So the chances are the message is acknowledged and dequeued if all subscribers have it. This can also be asynchronous, so you have no control over the message state. Throwing a RuntimeException just to rollback the acknowledgement is highly likely to fail, and not good practice. It may have already been acknowledged. Using CLIENT_ACKNOWLEDGE is a much better way to just peek at a message without dequeuing. Also, what is the time to live on the message (also ensure the client and server times synchronized)?. Andy -- View this message in context: http://openejb.979440.n4.nabble.com/redelivery-of-MDB-with-BMT-tp4666382p4666424.html Sent from the OpenEJB User mailing list archive at Nabble.com.
