哪种方法可以连接大型机和Java? MQ系列/ IBM CICS事务网关中哪个最好? [英] which is proven solution to connect mainframe and java ? which is best in MQ series / IBM CICS Transaction Gateway?

查看:113
本文介绍了哪种方法可以连接大型机和Java? MQ系列/ IBM CICS事务网关中哪个最好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪种方法可以连接大型机和Java?

哪个是连接到Java和大型机COBOL的最佳解决方案?

Which is best solution to connect to java and mainframe COBOL?

推荐答案

假定 Java是指 Java没有在大型机上运行,则有多种方法可以做到这一点。

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


  1. CICS Web服务(SOAP)

  2. CICS Web支持(REST / POX)

  3. 具有触发队列的MQSeries

最佳在旁观者眼中,它取决于您的需求。这些都不是新功能,已经使用了几年。

"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.

对于选项1,CICS Web Services Assistant将根据COBOL现有语言结构生成WSDL。如果您决定不喜欢它生成的内容,则可以编写自己的WSDL并从中生成COBOL语言结构。 Java程序将使用您喜欢的SOAP(或MQ)基础结构与CICS / COBOL程序进行通信。

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.

对于选项2,您的CICS / COBOL程序必须为编码为网络感知。 CICS / COBOL程序必须使用WEB EXTRACT,WEB RECEIVE和WEB SEND API与Jav​​a程序进行通信。 Java程序将使用HTTP(S)GET / POST处理向CICS / COBOL程序发送/接收消息。

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.

对于选项3,您的CICS / COBOL程序将必须被编码为使用MQGET和MQPUT来接收消息并将消息发送到Java程序。您想要用回退队列名称和回退阈值定义队列,然后对照回退计数值检查后者。如果阈值大于计数,则您希望将消息移至回退队列,而无需尝试在CICS / COBOL程序中对其进行处理(这是有害消息)。该Java程序将使用JMS或您喜欢的任何消息传递包装程序包与CICS / COBOL程序进行通信。

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.

这篇关于哪种方法可以连接大型机和Java? MQ系列/ IBM CICS事务网关中哪个最好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆