有人有从 Java 连接到 AS400 的链接和资源吗?
我记得几年前,有人告诉我有一种连接器可以模拟键盘上的击键以及其他直接连接的“最纯粹”方法。
在网络上我找到了很多链接,但我找不到完整的产品来执行此操作(我可能没有使用正确的关键字)。
编辑
感谢您的回答:
我们正在寻找一种访问 AS400 内部数据和/或其使用的屏幕并将其公开以供其他新应用程序重复使用的方法。 要么作为某种 Web 服务,要么直接通过 Java(Java 将使用 Web 服务公开操作)
提前致谢。
编辑
根据MicSim帖子,我还找到了此链接:
http://www.ibm.com/developerworks/library/ws-as400/index.html
Does anyone have links and resources to connect to an AS400 from Java?
I remember years ago, somebody told me about a connector that simulates KeyStrokes from the keyboard and other "purest" approach that connected directly.
On the web I have found a lot of links, but I cannot find a complete product to do this (I am probably not using the right keywords).
EDIT
Thanks for the answers:
What we are looking for is a way to access the data inside the AS400 and/or the screens it uses and expose them for other new applications re-use. Either as a webservice of some sort, or directly through Java ( and java will expose the operations using webservices )
Thanks in advance.
EDIT
As per MicSim post, I've also found this link:
http://www.ibm.com/developerworks/library/ws-as400/index.html
发布评论
评论(6)
您正在寻找的可能是 Toolbox for Java™ & 来自 IBM 的 JTOpen。 工具箱中还有一个 AS400 类,用于执行特定的 AS400 任务。 您可以查看此处和此处 了解更多详情。 刚刚用谷歌搜索了一下,希望对您有所帮助。
What you are looking for is probably the Toolbox for Java™ & JTOpen from IBM. There is also an AS400 class in the toolbox for performing specific AS400 tasks. You can look here and here for more details. Just googled it and hope it's helpful.
IBM 的 5250 屏幕抓取技术是“WebFacing” - 我会发布一个链接,但您最好在 Google 上搜索它,因为 IBM 的文档非常分散。 还有其他可用的技术,但是:屏幕抓取从来都不是任何人的最爱,因为通常你最终得到的东西虽然看起来更最新,但实际上比绿屏更难使用,而且没有更多功能。 5250 可能是我用过的最好的数据输入平台 - 浏览器中的 Web 表单是最差的之一。
如前所述,jt400 是处理大多数其他事情的最佳选择。 特别是:
JDBC - 适用于所有 SQL 事物。 如果你做得正确并且将文件当作真正的表格来处理,那么这是完全摆脱 400 的一种方法。
记录级访问 - 使用与 RPGLE 类似的数据库 API 编写 Java 程序(400 名程序员喜爱的所有这些链、setll)
调用程序、系统命令、管理资源(数据队列、数据区域、打印/线轴、作业等)
好运气
IBM's 5250 screen-scraping technology was "WebFacing" - I would post a link but you're probably better off Googling it, since IBM's documentation is so scattered. There are other technologies available too but: Screen-scraping was never anyone's favourite since typically you end up with something which, although it looks more up-to-date, actually is harder to use than a green screen and no more functional. The 5250 is probably the single best data entry platform I've ever used - web forms in a browser are one of the worst.
As mentioned, jt400 is the way to go for most other things. In particular:
JDBC - for all things SQL. If you do it right and address your files as though they really are tables, it's a way to get away from the 400 entirely.
Record-level access - write Java programs using a similar database API to RPGLE (all those chains, setlls that 400 programmers love)
Call programs, system commands, manage resources (data queues, data areas, prints / spools, jobs etc etc)
Good luck
如果您只想在 AS/400(或 iSeries、System i,或 IBM 营销部门本月决定的任何名称)上运行 Java,那么这是一种受支持的语言。 您可以直接访问伪 DB2 数据库。 或者您正在寻求其他形式的整合?
If you just want to run Java on the AS/400 (or iSeries, or System i, or whatever IBM's marketing department has decided to call it this month), that's a supported language. You can access the pseudo-DB2 database directly. Or are you after some other form of integration?
这显然取决于您想要做什么,但是如果您想通过网络连接模拟击键到 AS400 进程,那么 Expect4j 可能就是您正在寻找的库。
不过,这通常是一个非常令人讨厌的黑客行为,而且通常有更好的方法来实现你的目标。 你想做什么?
Expect4J 库可以在此处找到。 Expect 最初是一个 unix 命令,允许您指定一个字符串期望看到然后返回一串字符。 它经常用于自动登录等以及屏幕抓取应用程序。
This obviously depends on what you want to do, however if you want to simulate keystrokes across a network connection to an AS400 process then Expect4j may be the library you are looking for.
This is generally a really nasty hack though and there are frequently better ways to achieve your goals. What are you trying to do?
The expect4J library can be found here. Expect was originally a unix command that allowed you to specify a string that you are expecting to see and then a string of characters to return. It was frequently used for automating logins etc and for screen-scraping applications.
更好的是 TN5250j 控制台,它可用于从 AS/400 提取数据。
Even better is the TN5250j Console, which can be used to extract data from the AS/400.
jacada 制作工具来完成您想要的事情
http://www.jacada.com/
jacada makes tools to do what your looking for
http://www.jacada.com/