We did a test recently with the latest CMS CPP library. Scenario: To test the session commit functionality when queue memory is full on the destination broker.
Setup: We have written one client which acts like a producer and the activemq session is opened in SESSION TRANSACTED mode. The messages are sent by the producer to the destination broker queue so that the queue memory limit is hit on the destination queue. After sending the batch of messages, the producer did a commit on the session, which resulted in only committing only a subset of messages in the destination queue and remaining messages are not commited *due to the queue memory getting full.* *Actually we were expecting that session commit call should either commit the whole batch of messages or rollback the entire batch of messages if the queue is FULL on the destination broker queue, but it should not commit few messages and rollback the other messages. * *Can anyone please advice whether this is the expected functionality or it is BUG in the activemq CMS CPP library session commit function code. * -- View this message in context: http://activemq.2283324.n4.nabble.com/AMQ-CMS-CPP-session-commit-not-working-as-expected-tp4677913.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.