Question

  Asked: Nov 29 2004   3:31 PM GMT
  Asked by: jeri48302J


AS400 RPG Call Java on Webservice


E-business, Hardware, Servers, BEA WebLogic, Hewlett-Packard Application Server, IBM WebSphere, WAS Express, WebSphere Application Server, WAS, WebSphere Commerce, WebSphere Portal, WebSphere Studio, Development, Web development tools

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!

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on DataCenter, Development and Lotus Domino.

Looking for relevant DataCenter Whitepapers? Visit the SearchDataCenter.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

loscar  |   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  |   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  |   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