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



On Donnerstag, 22. April 2004 22:23, SMore@xxxxxxxxxxxxxx wrote:
> This sounds like the "right" way to do it.

Steve, 

you should have in mind, that doing it this way would start multiple JVMs, one 
for each user Job using JNI to call a java method from RPG. This might be 
good for ibm (selling hardware), but not good for performance.

Dieter Bender 

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

-- 
mfG

Dieter Bender


DV-Beratung Dieter Bender
Wetzlarerstr. 25
35435 Wettenberg
Tel. +49 641 9805855
Fax +49 641 9805856
www.bender-dv.de
eMail dieter.bender@xxxxxxxxxxxx


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.