× 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.



Jon,

You haven't missed a thing.

As I stated in one of my previous posts, using the JNI via RPG
to process a Java Array Object involves more code than Barbara's
solution.

Clearly there are (always) serveral ways to accomplish an objective.
Thus, sometimes the more significant challenge for us technologists is
using the solution best suited for the problem at hand (verses the one
that stimulates the techie in each of us).

While I have contributed to this post, I can not definitively say
which of these options I would use as each of the 3 have merit. Without
hesitation, though, a JNI solution presents the most complexity.        It
may be "cool" but it is not the easiest soluton.

Regards,

Michael Rooney
Citigroup International



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Jon Paris
Sent: Friday, April 09, 2004 8:30 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Java array in ILE RPG


 >> Otto, if you want to deal with the Java array directly, you will
 >> have to do as Michael suggested earlier and make the method call
 >> yourself using JNI directly.

Maybe I'm missing something - but doesn't it make more sense to write a
simple (?) java wrapper that presents a more straightforward interface to
the RPG code?  It seems to me that we're getting into an ugly and probably
error prone solution that makes life harder than it need be.

Wrappering also offers the option to provide a cleaner method of handling
any exceptions thrown by the Java code.  Most of the methods I've seen for
handling that within RPG are not at all nice!

Jon Paris
Partner400
www.Partner400.com

_______________________________________________
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:

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.