Generic queue client for Java