java client sample for online processing