|
It seems to me you're talking about calling RPG from java. I'm talking about calling java from RPG. We've talked about the obvious ways--java pgm writes to file, java pgm writes to dataqueue, RPG pgm calls stdout APIs. I was curious if there were a simple way to call a java pgm from an RPG pgm in the manner of a normal dynamic call. If I'm wrong, I'll be delighted. -----Original Message----- From: DUCRET Gilles (GVA) [mailto:Gilles.DUCRET@lloydsbank.ch] Sent: Monday, August 30, 1999 11:58 PM To: 'JAVA400-L@midrange.com' Subject: RE: doing things backwards Just use Visual Age wizard to call an rpg program. You can pass your parameters and get the returned values. You can also create a stored procedure. This store procedure will call teh rpg program (the stored procedure encapsulate the rpg program). Then call the stored procedure with jdbc This is quite simple to do. This is really useful only if rpg programs are well written (display layer separated from the business layer) Gilles -----Original Message----- From: Joel Fritz [mailto:JFritz@sharperimage.com] Sent: lundi, 30. août 1999 18:05 To: 'JAVA400-L@midrange.com' Subject: doing things backwards Don't ask why we want to do it. <g> Is there a good way to call a java program from an RPG program passing it arguments and receiving return values that will be used in the RPG program? ########################################### The above is my personal opinion and is not intended to represent good programming practice or the product of a sound mind. Joel Fritz +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ********************************************************************** +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
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.