I believe if the queue you create is not temporary then it will be persisted (i.e. it will survive a server restart). Likewise, any persistent, unacknowledged messages in that queue should survive a restart as well. Try it out and let me know if you see anything different.