I was faced with a similar situation. Scott Klement gave me some insight
and advise.
Here is a link to the archive
([1]
http://archive.midrange.com/rpg400-l/200907/msg00285.html).
HTH,
Robert Rogerson
[2]jmoreno@xxxxxxxxxxxxxxxx wrote:
Hello everyone,
In our company we are using a java program that serves a external function
A consultant put together an RPG wrapper that calls the java program and
returns the results to the RPG program ( A callable function)
The problem resides here:
When the RPG program invokes the procedure that describes the java
program,
The java program returns java string and it works fine when all conditions
are fine
However, there is no provision for a Java exception error handling in RPG
other than the RPG MONITOR opcode
I have been told that in the case of an exception Java type we have to
manipulate the Java exception in a different way
Is it possible to catch that Java exception error in RPG and how would you
recomend to do it?
How could you get that "Java exception error back in your RPG progarm and
manipulate that information?"
Regards
Jorge A Moreno
Military Car Sales, Inc
This email, including its attachments, may contain information that is
confidential and may be protected by federal and/or state laws and
regulations, or other confidentiality privileges. This email, including
its attachments, may contain non-public information, therefore it is
intended to be conveyed only to the designated recipient(s). If you are
not an intended recipient, please delete this email, including its
attachments, and notify the sender. The unauthorized use, dissemination,
distribution or reproduction of this email, including its attachments, is
prohibited and may be unlawful.
References
Visible links
1.
http://archive.midrange.com/rpg400-l/200907/msg00285.html
2. mailto:jmoreno@xxxxxxxxxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.