To reproduce this follow the steps below:
1. Make your queue as Last Value Queue by doing adding following attribute <last-value-queue>true</last-value-queue> </address-setting>
2. Make sure your Queue is persistent.
3. First push a value to the queue for example "XYZ". (Set the property "_HQ_LVQ_NAME" to "XYZ")
4. Make sure that value is not processed by the consumer. Either by adding a delay or pausing the queue.
5. Stop the wildfly server and restart it again.
6. Push same value to the queue for example "XYZ".( Set the property "_HQ_LVQ_NAME" to "XYZ")
7. Check the queue using JMX Console.
8. You should find two entries containing "XYZ" as the value.
But by definition it should only have the last value retained.
Note: This happens only when server is restarted not when server is running at that time queue works fine.
To reproduce this follow the steps below:
1. Make your queue as Last Value Queue by doing adding following attribute <last-value-queue>true</last-value-queue> </address-setting>
2. Make sure your Queue is persistent.
3. First push a value to the queue for example "XYZ". (Set the property "_HQ_LVQ_NAME" to "XYZ")
4. Make sure that value is not processed by the consumer. Either by adding a delay or pausing the queue.
5. Stop the wildfly server and restart it again.
6. Push same value to the queue for example "XYZ".( Set the property "_HQ_LVQ_NAME" to "XYZ")
7. Check the queue using JMX Console.
8. You should find two entries containing "XYZ" as the value.
But by definition it should only have the last value retained.
Note: This happens only when server is restarted not when server is running at that time queue works fine.