× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.