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



David,

I don't know an answer to your API question, but one way to reuse your

logic may be through SQL. Servlets and Java are pretty good at calling

and using SQL procedures, functions, and statements. Servlets are also

very good at returning data via HTTP. So I would at least look at
returning
data from your RPG program to the Servlet and letting your Servlet do
what Servlets do best.

There are a lot of ways to extend your RPG logic via Servlets and I
know
Joe Pluta has come up with some interesting solutions. You might check

out his Web site at www.plutabrothers.com. I prefer to put the business

logic closer to the database but we had the write from scratch option
available when we started.

David Morris

>>> dmosley@dancik.com 12/06/01 06:53AM >>>

I've seen alot of e-mails come across lately about "Embedded Java", and
I
was curious if anyone has had any success of having Java Servlets (or
JSPs)
call RPG, or CL, programs.  Or even Service Programs.

The reason I am asking is that we are contemplating of how we are going
to
re-write our internet software.  Currently, it is so 'Old-School', by
this
I mean very 'Old-School'.  We currently have Net.Data, that calls
REXX,
that calls CLs, that call RPGs..  With Parameters, and very large data
structures fields, being passed and parsed through-out that stream.
This
may be OK, sound, (I guess).  But you'd truely have to look at the code
to
really appreciate the current RPG CGI-APIs and Net.Data enhancements.
This
may have been a good idea in the 90's, but the code is so
non-re-usable,
and old, that it is impossible

So, which out having to re-write our entire business logic, from RPG
to
JAVA, we were simply going to have a Servlets, (or JSPs) call our
Business-Logic RPGs.. So, this is our plan.  For right now.  It's not
our
final final, but it is a start.


Also, my e-rpg question, is if I have Servlet that call an RPG program,
is
it possible to have that RPG program use the @WrtStOut API to write to
the
browser, like I would using e-rpg, or Net.Data?

Thanks and Happy holidays.
dav

David L. Mosley, Jr.
Systems Analyst
2000 CentreGreen Way
Suite 250
Cary, NC 27513


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.