Java message queue using MongoDB as a backend