QueueMonitor with java