1

I am tasked with programming a routine that will run on a iSeries platform - where I pass in a parm (like userid, timestamp, etc...) into a program that can perform SHA-2 data encryption. I take the encryption result and format it into a string to open a browser.

I know how to open a browser using a CLP but trying to find a way to perform the encryption. Do I have to code a Java program to handle that? Is there something out there I can compile to iSeries that can be called from a SQLCBL or CLP?

I've never coded a Java program/class on the iSeries. Have some Java pgmrs here at work that can assist with that. Just need to know how to write a Java class and compile on the iseries.

Thoughts? Hints? Suggestions?

4

1 回答 1

1

为 iSeries 开发 Java 与其他平台没有区别。使用您选择的编辑器在本地开发 Java 类,构建 JAR 并将 JAR 放在 iSeries 文件系统的某个位置。

您使用 JAVA 命令调用 Java 类,您必须在其中提供类/jar 等。确保提供包含 JAR 的类路径,或在环境变量中设置类路径。

要从 CLP 或其他 iSeries 程序交换参数,一个小型 RPG 程序可能有助于转换数据。RPG 具有本机Java 支持,我发现这是将iSeries 程序与Java 集成的一种简单方法。RPG 中的原型设计和调用 Java 方法一文描述了我使用的解决方案。

于 2009-10-26T12:11:09.000 回答