简体   繁体   English

使用Java和X3270进行屏幕抓取

[英]Screen scraping with Java and X3270

I have been trying to use Java to connect to X3270 (actually, wc3270, since I'm working on a windows environment) and control it to access a mainframe, login, navigate a few screens and get the data returned from x3270's command "ascii" for further processing (like separating the needed fields). 我一直试图使用Java连接到X3270(实际上是wc3270,因为我在Windows环境中工作)并控制它访问大型机,登录,浏览几个屏幕并获取从x3270的命令“ ascii”返回的数据。进行进一步处理(例如,分隔所需的字段)。

Even if I can connect to x3270 and login into the server, I'm having trouble to reliably retrieve the screens from x3270 after sending a command, even using threads to read the socket continuously. 即使我可以连接到x3270并登录到服务器,也无法在发送命令后可靠地从x3270检索屏幕,即使使用线程连续读取套接字也是如此。

Can anyone tell me what I should be doing to get things right? 谁能告诉我我该怎么做才能做对事情?

I cannot more highly recommend Jagacy 3270 , a Java screen scraping library that's incredibly reliable and dead easy to use. 我不能再高度推荐Jagacy 3270 ,这是一个Java屏幕抓取库,它极其可靠并且非常易于使用。 I had tried rolling my own, and also both IBM HATS and IBM Host on Demand, and found Jagacy to be easy, quick, lightweight, and already done for me. 我曾尝试自己动手,也尝试过IBM HATS和IBM Host on Demand,结果发现Jagacy既简单,快速,轻便,也已经为我完成了。

A full license isn't cheap, but was worth it to us. 完整的许可证并不便宜,但对我们来说值得。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM