I have a Java application running on a separate system that needs to call a set of IBMi SQL procedures over a JDBC connection. I would like all of that to run under a single commitment control. Is that possible? I would guess so, since it's over a single connection and therefore it's all handled by the same job.
E.g.
IBMi SQL procedure A writes a record to table A1
IBMi SQL procedure B writes a record to table B1
IBMi SQL procedure C writes a record to table C1
IBMi SQL procedure D does an SQL commit
Java establishes an SQL connection over JDBC
Then over that connection it calls procedure A, then B 5 times, then C
Then it calls procedure D, which commits all the changes made by A, B, and C
Would that work?
E.g.
IBMi SQL procedure A writes a record to table A1
IBMi SQL procedure B writes a record to table B1
IBMi SQL procedure C writes a record to table C1
IBMi SQL procedure D does an SQL commit
Java establishes an SQL connection over JDBC
Then over that connection it calls procedure A, then B 5 times, then C
Then it calls procedure D, which commits all the changes made by A, B, and C
Would that work?
Comment