txTimeout = new Integer(7200);
}
Long rowProcessed = new Long(0);
try {
EntitySaxReader reader = new EntitySaxReader(delegator);
reader.setUseTryInsertMethod(mostlyInserts);
reader.setMaintainTxStamps(maintainTimeStamps);
reader.setTransactionTimeout(txTimeout.intValue());
reader.setCreateDummyFks(createDummyFks);
reader.setCheckDataOnly(checkDataOnly);
long numberRead = (url != null ? reader.parse(url) : reader.parse(xmltext));
rowProcessed = new Long(numberRead);
} catch (Exception ex){
return ServiceUtil.returnError("Error parsing entity xml file: " + ex.toString());
}
// send the notification