We have control of both machines, but not the Java Application. Our
rules for this application are "No Modifications".
I will check into the "services" option. Our RPGLE based application is
EDI, which will be passing the customer orders to the Java ERP
Application. At some point, I "assume" that the Java ERP system will
generate Invoices for EDI which may need a return trip from the Java
application to the RPGLE application. I don't have a good feel for the
volume, but we do EDI with a lot of vendors.
Thanks
Dave
Mike Krebs wrote:
One approach we used years ago (and still works today) is to write small
programs that read and write data queues and make the appropriate calls
from
there. The data queues we used were DDM queues which allows one computer
to
use the other computers queue. We used this to track inventory movement
and
had some learning curve (figure out if one machine goes down what to do
with
the transactions), but worked pretty well.
At this point in my career, I'm pretty excited about "services".
Depending
on volume, this might work for you as well. Assuming you have control
over
both machines, I'd probably choose to implement a simple front-end on
the
java side that provided the service. Then write the RPGLE to consume
that
service. Scott Klement's socket tutorial or his LIBHTTP (depending on
interface) would be a good starting point for the client (and the server
if
you want to write it in RPG).
Good luck,
Mike Mike
-----Original Message-----
From: rpg400-l-bounces+mkrebs=milwaukeevalve.com@xxxxxxxxxxxx
[mailto:rpg400-l-bounces+mkrebs=milwaukeevalve.com@xxxxxxxxxxxx] On
Behalf
Of Dave Murvin
Sent: Friday, August 24, 2007 10:40 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Call Java program on another iSeries machine from RPGLE
Hello,
Just got handed a task to check on what's involved in calling a Java
program
on another iSeries machine from an RPGLE program on a second iSeries
machine. We have a RPGLE based application on one machine that needs to
talk to a Java based application on another machine. The Java
application
has APIs that we need to interact with.
I haven't done much research on this yet, other than taking a quick look
at
the archives. What should I be looking at? Where should I look for
documentation? Are we looking at remote procedure calls, sockets, or
???
Is this more appropriate on the java400 list? I have had some
experience
with Java, but have not used it in awhile.
Any hints or suggestions would be appreciated.
Thanks
Dave
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or
change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.