Added basic ack to java client