client_ack

This commit is contained in:
Peter Hormanns 2023-09-13 19:54:05 +02:00
parent c530a65461
commit 99f33b5b4b

View File

@ -183,6 +183,7 @@ public class QueueServer implements MessageListener, ExceptionListener {
final ObjectMessage statusMessage = session.createObjectMessage(queueMessage);
logger.log(Level.INFO, "send(" + statusMessage + ")");
producer.send(statusMessage);
statusMessage.acknowledge();
} catch (Exception statusException) {
logger.log(Level.SEVERE, statusException.getMessage(), statusException);
} finally {