Folks, I think there's a bug in line 80 of org.apache.activemq.store.memory.MemoryMessageStore in the main trunk.
It says if(lastBatchId!=null&lastBatchId.equals(msgId)){ I think it should say if(lastBatchId!=null && lastBatchId.equals(msgId)){ (logical AND vs bitwise AND) Could someone fix this in the trunk please? thx..