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



Aaron,

Actually, we are thinking along the same lines. I think the XML
procedural
parser was a good idea in its day, but that day has passed. The
Java-based
tools are far ahead and that is what I have been working with. If you
are
interested, you can see a description of what I am working on at:

http://iseries-toolkit.sourceforge.net/cocoon.html

Be sure to look at the link "Publishing RPG IV-generated Invoices with

Cocoon." I am trying to provide a more functional invoice generation
example. The RPG example I have just builds an invoice using IFS file
procedures. The Java version allows me to validate the input and was
much simpler than the RPGIV version. I am now trying to take the best
aspects of each one (lots of iSeries RPG programmers, Java's parsing)
and merge them.

David Morris

>>> ALBartell@taylorcorp.com 12/04/01 07:06AM >>>
Were you parsing the XML with RPG or Java?  I tried the RPG parsing but
it
turned out to be !yuck! so I took a look at the Java parsers and those
work
a ton better in my opinion.  If you need some example code for Java let
me
know.  I have just finished my first XML parsing program and am pretty
darn
proud of it even though it doesn't do that much:-)

Aaron Bartell

-----Original Message-----
From: David Morris [mailto:David.Morris@plumcreek.com]
Sent: Tuesday, December 04, 2001 7:18 AM
To: rpg400-l@midrange.com
Subject: Re: Embedded Java


Jon,

Thanks, you don't happen to know the issue of iSeries Magazine? I took
a
look at their Web site and couldn't find it.

After playing with this some over the weekend, I am still on the
fence.
It is hard to beat a Java program running in a server job waiting on a
data queue. I think that an RPGIV wrapper around the Java Mail API
would
be a good choice. I was working on something more mundane -- XML
parsing.

David Morris

>>> Jon.Paris@Partner400.com 12/03/01 10:53 AM >>>
I've played with it some David.  Haven't had any real problems to date
-
but
then I haven't done that much.

I used the examples that Barbara Morris and Hans Boldt produced for
iSeries
mag as the starting point and went from there.  I have not experienced
any
problems converting varying length fields to String objects - the
compiler
did the work.  I suspect that it makes more sense to have Java build
the
strings etc. to simplify the RPG interface.

Personally I think the support for creating RPG JNI routines is the
most
valuable - the support for RPG creating/using Java is nice to have but
I
don't see it getting a lot of use for a year or two.  I intend to play
with
the Java e-mail support from RPG when I get access to a V5 machine
again.

Jon Paris
Partner400



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.