Connection conn = ConnectionUtil.getConnection("jabadot"); CallableStatement cs = conn.prepareCall("{call ListDefunctUsers}"); ResultSet rs = cs.executeQuery(); while (rs.next()) { System.out.println("Defunct user: " + rs.getString("user")); }