|
Bruce, While it might be easy to prototype your supplied java interface, it wouldn't provide you the necessary background for integrating your RPG apps with Java, so.... One of the best places to start is the ILE RPG Programmers Guide. Chapter 11 of the V5R1 version, entitled "RPG and the eBusiness World", contains numerous code snippets demonstrating prototyped calls to java classes. Additionally, there is an execllent table on page 159 providing a "map" between RPG and Java data types. As you are interested in passing arrays to/from Java, note #4 might be of interest to you, as will the paragraph that reads "When calling a method, the compiler will accept arrays as parameters only if the parameter is prototyped using the DIM keyword". The following thread also provides some valuable info regarding java arrays & RPG: http://archive.midrange.com/rpg400-l/200404/threads.html#00020 Also, while chapter 11 does contain considerable information and insight into calling java from RPG, the presentation and contents can be extremely confusing for non-java people. So while I refer you to this chapter as a starting point, it is just that. Beyond that, there are several posts on this forum demonstrating and expanding on some of the details in chapter 11. I would recommend scanning the RPG400 list using the keyword JAVA. Lastly, when you're done pounding the wall with your head, as integrating RPG & java can often lead to, you can always post some of your questions or code here. Hope this helps.... Michael Rooney Citigroup International -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Bruce Odum Sent: Monday, June 07, 2004 2:26 PM To: RPG programming on the AS400 / iSeries Subject: Prototyping Java We have a java person here that rewrote the javamail utility and added several features. It uses arrays to pass data and no one here has ever had to fig out how to prototype a java program. How do you even begin this process. I have a sample of the java call below. public USXMessage(javax.mail.internet.InternetAddress[] from, javax.mail.internet.InternetAddress[] to, javax.mail.internet.InternetAddress[] cc, javax.mail.internet.InternetAddress[] replyTo, java.lang.String subject, java.lang.String text, java.lang.String[] attachments)Creates an email message using the given criteria Parameters: from - - Array of values to be used for the from field of the email message to - - Array of email address for the recipient of the email message cc - - Array of email address for the email message to be carbon copied to replyTo - - Array of email address to be used when replying to the sent email subject - - Value to be used for the subject of the email message text - - Text message attachments - - Array of Files to be attached to the email message -- 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.