[ajug-members] RPG & Java

Christopher Fowler cfowler at outpostsentinel.com
Mon Mar 19 10:54:20 EDT 2007


On Mon, 2007-03-19 at 10:14 -0400, Matthew Hardin wrote:
> Does anyone have any good referrals for a book on working with Java
> in 
> the iSeries world?   Specifically I'll need to be interfacing some
> RPG 
> code with some Java code and I know nothing about RPG or the iSeries. 

I know nothing of RPG.  I'll bring up some ideas from the UNIX world
that may help.

A while back I read about the two different types of programmers.  In
Windows a programmer works on the GUI then writes the real code.  In
UNIX a programmer works on the real code and then might write a GUI.  

In our J2EE stuff we have java code and we have perl code.  We have othe
stuff as well but those are the only 2 that interface with one another.
We've written some command line stuff and we call those "engines".
Those are written in Perl.  For Java to interface with those it simply
executes them with System.exec() and processes what it reads from the
child's STDOUT.  There is not Perl to Java "interface" stuff like you
are asking about in reference to RPG to Java.  As I said I know nothing
about RPG and it has been _years_ since I dealt with an iSeries.  Is it
possible to write command line driven apps in RPG that spit out XML(?)
that could be processed by Java.  How expensive is it on the iSeries to
create a process?  




More information about the ajug-members mailing list