ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Two-Phase commit on S/390 under CICS

Post new topic  Reply to topic
 Two-Phase commit on S/390 under CICS « View previous topic :: View next topic » 
Author Message
naylak
PostPosted: Tue Sep 30, 2003 4:50 am    Post subject: Two-Phase commit on S/390 under CICS Reply with quote

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.


Thanks in advance

naylak
Back to top
View user's profile Send private message
mgrabinski
PostPosted: Wed Oct 01, 2003 9:24 pm    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

A Java program won't run under CICS on z/OS.
Write it in C/COBOL/PL1/Assembler
_________________
Marcin Grabinski <><
Back to top
View user's profile Send private message
naylak
PostPosted: Fri Oct 17, 2003 8:18 am    Post subject: Reply with quote

Apprentice

Joined: 08 Feb 2003
Posts: 47

As far as my knowledge goes I can access CICS services from java using JCICS. Correct me if I am wrong.








Thanks and regards
naylak
Back to top
View user's profile Send private message
fwg
PostPosted: Mon Nov 24, 2003 2:54 pm    Post subject: Reply with quote

Newbie

Joined: 24 Nov 2003
Posts: 2
Location: Germany

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

Regards
fwg
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Two-Phase commit on S/390 under CICS
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.