Hi all.
I want to add logging to class $JAVA_TOP/oracle.apps.fun.netting.batch.server.NetBatchAMImpl
I have added some code to createBatch method:
public void createBatch(String var1) {
// >> my logging code start
OADBTransactionImpl dbtrans = (OADBTransactionImpl)this.getOADBTransaction();
OracleCallableStatement callablestatement;
callablestatement = (OracleCallableStatement) dbtrans.createCallableStatement("BEGIN xx_log.log('createBatch','step 1'); END;",dbtrans.DEFAULT);
try {
callablestatement.execute();
callablestatement.close();
dbtrans.commit();
}catch (SQLException e){
System.out.println("The Error is " + e);
throw new OAException(e.getMessage());
}
// << my logging code end
OAViewObjectImpl var2 = this.getNetBatchesAllVO1();
if (var2.getFetchedRowCount() == 0) {
var2.setMaxFetchSize(0);
}
, where xx_log.log - database autonomous transaction, but there is no any logs in table after executing this procedure in OAF page.
What I have to do to force logs to appear?