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



> -----Original Message-----
> From: rpg400-l-bounces@xxxxxxxxxxxx
> [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Steve Richter
> Sent: Thursday, March 24, 2005 12:36 PM
> To: RPG programming on the AS400 / iSeries
> Subject: Re: FW: IBM's RPG Strategy (was: Long Procedure Names)
> 
> 
> 
> Hi Charles,
> 
> No I am not. ( I only have v5r1 ).   What happens when the RPG
> procedure that instantiated the object returns?  Does the java object
> destruct and does the finalize member function get called?  What
> happens when the Java code throws and exception?  Can the RPG
> procedure catch it?   Sure would like IBM to let me download their
> latest compiler.
> 
> -Steve


As always, the answer is it depends ;-)

You can let the system handle starting/shutting down the JVM or you can make a 
call and do it yourself.

You do need to let Java know that the RPG procedure is done with a object or if 
you want the object to be permanent.

Not sure about Java exceptions, looks like there's a procedure to call to check 
for them.  I don't believe they throw OS/400 exception messages that RPG can 
catch.

Might want to download the v5r2 ILE RPG Programmers Guide (NOT the Programmer's 
Reference).  There's a whole chapter on RPG and Java.

Also, take a look at the JAVA list.

HTH,
Charles


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.