Thanks Vern,

Performance is not really an issue with this requirement - the requirement
is to connect to a gateway once per day and retrieve up to a 1000 small
transactions.

We have other applications that require a JVM and we have used data queues
to a monitor that works very well and again no real performance
consideration.

As we can use the java classes from pure java if I can't sort this out I
will get a new java class to call the gateway API classes that is simple
and RPG can then call the new class. I would just prefer not to add this
additional layer - not from a performance perspective but from a
complexity perspective.

Appreciate your comments




Don Brown





From: Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
To: Java Programming on and around the IBM i <java400-l@xxxxxxxxxxxx>
Date: 11/01/2017 11:42 PM
Subject: Re: How to Invoke a constant in a Java class from RPG
Sent by: "JAVA400-L" <java400-l-bounces@xxxxxxxxxxxx>



Hi Don

I agree generally with Dieter in this area. The more Java calls you have
from RPG, the less well your app will perform. An example is how slow
the use of POI can be, in my experience.

A call to a single class that gets the parameters you need will perform
ever so much better, especially if sent to something like ArdGate, where
you have exactly 1 start of the JVM.

Just to ask Dieter - can these calls to Java from RPG be sent to ArdGate
as individual calls? I don't know enough about ArdGate to say.

Regards
Vern

On 1/11/2017 1:01 AM, Don Brown wrote:
Thanks but I am confident it can be done. If I am proven wrong the plan
B
may be as you suggest.


Don Brown





From: "D*B" <dieter.bender@xxxxxxxxxxxx>
To: <java400-l@xxxxxxxxxxxx>
Date: 11/01/2017 04:57 PM
Subject: Re: How to Invoke a constant in a Java class from RPG
Sent by: "JAVA400-L" <java400-l-bounces@xxxxxxxxxxxx>



... it would be much easier to write some java code to provide the
needed
function for your RPG programms and doing all needed translations of
parameters in Java. It would be faster, more stable and much more
scalable

calling this piece of java asynchronous.

D*B



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 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.