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



Richard Schoen wrote:
We have a batch RPG job that calls a Java class which interfaces into
our Enterprise Workflow web service and it seems to work fine and it's
fast after initial startup.

It also depends on what kind of horsepower the system your run it on has.

Of course, for a batch job it's not so much of a issue ... as resources are allocated to batch jobs differently than interactive.

When I was initially playing with calling Java from RPG, the bulk of the invocations I was looking at were from interactive jobs. I didn't want to subject the user to the startup penalty. Plus, every user would have to have their own JVM instance ... chewing up system resources.

We decided to go with a tcp/ip sockets implementation that talks to our java server. The java server receives & responds to the requests. One instance of the java application, very lightweight native code requirements.

The initial design was a bit involved (I was learning both java and RPG sockets at the same time), but we wrappered it quite nicely (love love love service programs). The server can run on the System i or a PC (or unix server).

We send a request from the RPG app to the java server via tcp/ip ... simple requests are answered directly on same connection ... bulk data requests are written out to specific database files using jdbc.

Note: What I'm describing is different than the data queue based mechanism that I described earlier.

The only drawback is you need some familiarity with Java, RPG and how
they work together :-)

Drawback? Ha! That's the advantage. Something new to learn.

In todays world: You snooze you loose ... and that goes double for the technology world.

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.