Synchronize update of the lastMessageId. When new messages are created from multiple threads with the same connection the possiblity exists that they can have the same jmsMessageID!
Log in to post a comment.