Min java är lite rostig, men du borde kunna initiera din REF CURSOR-variabel i ett PL/SQL-block:
String statement = "DECLARE\n" +
"l_cursor SYS_REFCURSOR;\n" +
"BEGIN\n" +
"your_procedure(?, l_cursor, ?);\n" +
"END;"
CallableStatement cs = yourConnection.prepareCall(statement);
// bind first and last parameter
cs.setString(1,"constant");
cs.registerOutParameter(2, OracleTypes.CURSOR);