|
Phil, Let me first state that my expertise is NOT in Java. I am familiar with the language enough to be dangerous. Now that I've level set your expectations......... Within my confined java knowledge there are 2 possible solutions (I'm sure there are more but..see my first sentence) that, if you've never used either before, will probably involve considerable trial and error. Access to a good java developer wouldn't hurt. As you have some experience using stored procedures, one approach might be to use JDBC to invoke a stored procedure on the Unix box which, in turn, invoked the java program. Some preliminary information on JDBC (i.e. the java.sql class) can be found at: http://java.sun.com/j2se/1.3/docs/api/java/sql/package-tree.html The approach involves using Java's RMI (Remote Method Invocation) API. The RMI was designed to support the invocation of remote java methods so it might be what you're looking for. Some info on RMI can be found at: http://java.sun.com/j2se/1.4.2/docs/guide/rmi/ --> has tutorial & examples in java! http://java.sun.com/developer/technicalArticles/RMI/rmi_corba/ http://java.sun.com/docs/books/tutorial/rmi/overview.html http://java.sun.com/developer/codesamples/rmi.html http://java.sun.com/docs/books/tutorial/rmi/ As I've never used either of these java features, I can't endorse one or the other. Hopefully this information gives you some options to ponder. Good luck, Michael Rooney Citigroup International -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Phil Sent: Wednesday, April 21, 2004 6:36 PM To: RPG400-L Subject: Calling java pgm on remote server from RPG List, I have a request to call a java pgm on a unix box from an RPG app. I know how to do this between two as400's using stored procedures but I've never done it where the remote server wasn't an as400 and where the remote pgm wasn't RPG, COBOL, or C. Can someone point me to some documentation? Thanks, Phil _______________________________________________ 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 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.