0 pts.
 AS400 RPG Call Java on Webservice
Hello, #1. Current, With V5R2, We have Java in On AS/400, RPG call Java using RUNJVA with Parameters pass from RPG to Java. We using Data Queue pass data back from Java to RPG. We plan to take Data Queue out. Using Parameters pass back from Java to RPG. In V5R2, Is RUNJVA Parameters can pass back from Java to RPG? How many ways to pass Parameters from Java to ILE? #2. We try to move Java to NT using webservice Java, How AS400 RPG call Java on NT webservice?? How to pass parameters to Java and get parameter from java on webservice to RPG?? Thanks!

Software/Hardware used:
ASKED: November 29, 2004  3:31 PM
UPDATED: January 7, 2005  1:26 PM

Answer Wiki:
You cannot pass bidirectional parameters using RUNJVA. However, as of at least V5R1, you have been able to directly call Java methods from RPG. Several new D Spec keywords in RPG IV allow you to define Java classes and methods and call them directly from RPG. This is faster than using RUNJVA, but still not as fast as RPG calling RPG.
Last Wiki Answer Submitted:  November 30, 2004  9:01 pm  by  JoePluta99   0 pts.
All Answer Wiki Contributors:  JoePluta99   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi,

The way that work better is defining a java class in RPG ILE program, with prototype.
In the Eval you pass as parameters strings as long you need also you receive the answer from the java executed class:

EVAL RET =javaClass(stringA, stringB)

The javaClass is defined in the “D” section.

I tried to give you a hint for another way to run java in ILE.

I hope it helps.

Carlos Penaherrera

 0 pts.

 

Hello,
We get a request to move Java to NT using webservice Java,
How AS400 RPG call Java on NT webservice??
How to pass parameters to Java and get parameter
from java on webservice to RPG??
Thanks!

 0 pts.

 

Can ILE get Array Parms back from Java?? We need a group of data back, say: 10 sets of dealers back, Can we using Array??

Thanks!

Jer

 0 pts.