use of nl.nn.adapterframework.extensions.sap.jco2.SapException in project iaf by ibissource.
the class JcoResourceHolder method commitAll.
public void commitAll() throws SapException {
for (Iterator itc = this.destinations.iterator(); itc.hasNext(); ) {
JCoDestination destination = (JCoDestination) itc.next();
List tids = (List) this.tidsPerDestination.get(destination);
for (Iterator itt = tids.iterator(); itt.hasNext(); ) {
String tid = (String) itt.next();
try {
destination.confirmTID(tid);
} catch (Throwable t) {
throw new SapException("Could not confirm TID [" + tid + "]");
}
}
}
}
use of nl.nn.adapterframework.extensions.sap.jco2.SapException in project iaf by ibissource.
the class JcoResourceHolder method commitAll.
public void commitAll() throws SapException {
for (Iterator itc = this.clients.iterator(); itc.hasNext(); ) {
JCO.Client client = (JCO.Client) itc.next();
List tids = (List) this.tidsPerClient.get(client);
for (Iterator itt = tids.iterator(); itt.hasNext(); ) {
String tid = (String) itt.next();
try {
client.confirmTID(tid);
} catch (Throwable t) {
throw new SapException("Could not confirm TID [" + tid + "]");
}
}
}
}
Aggregations