which is proven solution to connect mainframe and java ? which is best in MQ series / IBM CICS Transaction Gateway?

前端 未结 2 1914
[愿得一人]
[愿得一人] 2020-12-03 12:59

which is proven solution to connect mainframe and java? Which is best in WebSphere MQ / IBM CICS Transaction Gateway?

Which is best solution to conn

相关标签:
2条回答
  • 2020-12-03 13:33

    Presuming that by "Java" you mean "Java not running on the mainframe," there are multiple ways to do this.

    1. CICS Web Services (SOAP)
    2. CICS Web Support (REST/POX)
    3. MQSeries with a triggered queue

    "Best" is in the eye of the beholder, it depends on what you want. None of these are new, the capability has been available for several years.

    For option 1, the CICS Web Services Assistant will generate WSDL from COBOL existing language structures. If you decide you don't like what it generates you can write your own WSDL and generate COBOL language structures from that. The Java program would use your favorite SOAP (or MQ) infrastructure to communicate with the CICS/COBOL program.

    For option 2, your CICS/COBOL program would have to be coded to be "web aware." The CICS/COBOL program would have to use the WEB EXTRACT, WEB RECEIVE, and WEB SEND APIs to communicate with the Java program. The Java program would use HTTP(S) GET/POST processing to send/receive messages to the CICS/COBOL program.

    For option 3, your CICS/COBOL program would have to be coded to use MQGET and MQPUT to receive and send messages to the Java program. You want to have the queue defined with a backout queue name and a backout threshold, and check the latter against the backout count value. If the threshold is greater than the count, you want to move the message to the backout queue without attempting to process it in the CICS/COBOL program (it's a poison message). The java program would use JMS or whatever your favorite messaging wrapper package is to communicate with the CICS/COBOL program.

    0 讨论(0)
  • 2020-12-03 13:37

    Looking from top you can connect to CICS

    • By using the CICS Transaction Gateway ( CTG ). There are ibm jar files which can connect you to CICS
    • By connecting directly to CICS with IPIC connection (http://jeethoughts.wordpress.com/2010/06/04/calling-cics-without-a-ctg-using-the-resource-adapter/)
    0 讨论(0)
提交回复
热议问题