AS400 RPG Call Java on Webservice
0 pts.
0
Q:
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!
ASKED: Nov 29 2004  3:31 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
0 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
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 Answered: Nov 30 2004  9:01 PM GMT by JoePluta99   0 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

loscar   0 pts.  |   Nov 30 2004  10:24PM GMT

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

 

jeri48302J   0 pts.  |   Dec 7 2004  11:52AM GMT

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!

 

jeri48302J   0 pts.  |   Jan 7 2005  1:26PM GMT

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