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



Something to take into consideration is the version of OS/400 you are
running. I don't recall what version this became available in. I know it
has worked since at least v5r1. I don't know before that.

Actually, the examples in the Programmer's Guide are _really_ simple. 

I found the following articles to be helpful when I was learning about
it:

http://www.midrangeserver.com/mpo/mpo013102-story02.html

http://www.midrangeserver.com/mpo/mpo041003-story01.html

Then you will want to check out that guide (this one is for v5r2). 

http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/sm22/c0925074.pd
f

That should give you an idea. If you don't know RPG it may prove to be
interesting, but the examples should help a lot. You can pull it off I
like 10-20 lines of RPG, give or take, depending on the number of
parameters you have.

Hope that helps!

Dan Feather
dfeather@xxxxxxxxxxxxx

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of
SMore@xxxxxxxxxxxxxx
Sent: Thursday, April 22, 2004 3:23 PM
To: java400-l@xxxxxxxxxxxx
Subject: RE: Passing Messages

This sounds like the "right" way to do it.

I am a java/linux programmer, so anything about RPG sounds complex.

Would there be a "Hello World" example for RPG/JNI ?

Once I get that, I think I can better understand the "ILE RPG
Programmer's
Guide"


-Thanks
Steve More
Web Application Developer
Empire Corporate FCU


-----Original Message-----
From: Daniel Feather [mailto:DFeather@xxxxxxxxxxxxx]
Sent: Thursday, April 22, 2004 2:52 PM
To: Java Programming on and around the iSeries / AS400
Subject: RE: Passing Messages


You could use JNI and write a simple RPG wrapper program to call your
java program, and have the java method you call return a string, and
then return that string in one of the parameters of the RPG program.
Then have your CL call that RPG program and read that parameter for the
result. That's actually not as complex as it sounds. Information about
calling java methods from RPG can be found in the ILE RPG Programmer's
Guide.

Something to consider.

Dan Feather
Silhouette/PinPoint R&D Programmer
Jack Henry & Associates, Inc.
dfeather@xxxxxxxxxxxxx

-----Original Message-----
From: java400-l-bounces+dfeather=jackhenry.com@xxxxxxxxxxxx
[mailto:java400-l-bounces+dfeather=jackhenry.com@xxxxxxxxxxxx] On Behalf
Of SMore@xxxxxxxxxxxxxx
Sent: Thursday, April 22, 2004 1:28 PM
To: java400-l@xxxxxxxxxxxx
Subject: Passing Messages

What is a good way to pass a message from a java program to CL ?

You can pass parameters in when calling RUNJVA, but how can you get a
parameter out ?

Here is what I have tried to do:
        1. In CL create a data-area in qtemp
        2. Call RUNJVA, this java program would write to the newly
created
data-area in qtemp
        3. CL would read a message from this data-area
        4. When CL ends the data-area in qtemp dis-appears

        The problem here is that the java program in step 2 can not read
the
data-area created in step 1.

I guess I'll try and use a db2 table instead of a data-area if no-one
has a
better idea.

Thanks
-Steve More



NOTICE:  This e-mail may contain confidential or legally privileged
information and is intended solely for delivery to the specific person
identified as the recipient.  Any review, re-transmission, dissemination
or
other use or taking of any action in reliance upon this e-mail by
persons
other than the intended recipient is prohibited.  If you receive this
e-mail
in error, please contact us at (smore@xxxxxxxxxxxxxx) and delete from
your
computer system, or otherwise from you records, the information, which
was
transmitted to you in error.
_______________________________________________
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



_______________________________________________
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.
_______________________________________________
This is the Java Programming on and around the iSeries / AS400
(JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.