client_ack
This commit is contained in:
parent
c530a65461
commit
99f33b5b4b
@ -183,6 +183,7 @@ public class QueueServer implements MessageListener, ExceptionListener {
|
|||||||
final ObjectMessage statusMessage = session.createObjectMessage(queueMessage);
|
final ObjectMessage statusMessage = session.createObjectMessage(queueMessage);
|
||||||
logger.log(Level.INFO, "send(" + statusMessage + ")");
|
logger.log(Level.INFO, "send(" + statusMessage + ")");
|
||||||
producer.send(statusMessage);
|
producer.send(statusMessage);
|
||||||
|
statusMessage.acknowledge();
|
||||||
} catch (Exception statusException) {
|
} catch (Exception statusException) {
|
||||||
logger.log(Level.SEVERE, statusException.getMessage(), statusException);
|
logger.log(Level.SEVERE, statusException.getMessage(), statusException);
|
||||||
} finally {
|
} finally {
|
||||||
|
Loading…
Reference in New Issue
Block a user