Posted: Tue Sep 30, 2003 4:50 am Post subject: Two-Phase commit on S/390 under CICS
Apprentice
Joined: 08 Feb 2003 Posts: 47
After I got replies for the above in my previous posts I have explored on it and now ready for building a sample code in java. Can anyone give a sample code in java implementing two-phase commit on S/390 under CICS involving DB2 and MQseries transactions.
While not being a JAVA specialist, I think/hope the following points to correspond to facts:
CICS/TS V2 supports JAVA applications. Select CICS/TS V2R2 or higher to be at the secure side for JAVA support under CICS/TS
Any CICS applications ( including JAVA applications running on a JVM in CICS ) have the 1PC else 2PC protocol available as an automatically used environment feature. The commit protocol is a 2PC if beneath CICS more than 1 ResourceManager like DB2 is involved ( as in Your case are DB2 and MQS ) and the transaction does recoverable updates ( as e.g. MQGET or SQL INSERT ... )
[ the switch between 1PC and 2PC is (usually) done by CICS automatically, CICS acts as the "Coordinator" in the 2PC Szenario ]
If You wish to use "transactional api" explicitly in Your CICS JAVA application, use ( there should be available) JCICS classes corresponding to the "EXEC CICS SYNCPOINT", else "EXEC CICS SYNCPOINT ROLLBACK" procedural calls
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum