|
Thanks Chris. "Chris Rehm" <javadisciple@eart To: <JAVA400-L@midrange.com> hlink.net> cc: Sent by: Subject: Re: Problem in transferring control owner-java400-l@mi from a CL program to the JAVA Program drange.com 05/07/2001 07:04 ã Please respond to JAVA400-L Actually, putting a MONMSG CPF0000 in your CL and returning info to your Java app and using that info to THROW an exception in your TRY/CATCH block would be good form. That way the Java app would also always know if there had been a problem with the CL execution. Chris Rehm javadisciple@earthlink.net If you believe that the best technology wins the marketplace, you haven't been paying attention. ----- Original Message ----- From: <suneethakalapala@lincsoftware.soft.net> To: <JAVA400-L@midrange.com> Sent: Thursday, July 05, 2001 5:18 AM Subject: Re: Problem in transferring control from a CL program to the JAVA Program > > David, > > Thanks for your reply. > > Yes, I have observed that if I trap the error (using a Monmsg), it works > fine. > But it may not be possible to trap all the errors. Some errors cannot be > predicted. So is there any thing I can do in such cases? > > Thanks, > Suneetha. > > > > > David Gibbs > <david@midrange.co To: JAVA400-L@midrange.com > m> cc: > Sent by: Subject: Re: Problem in transferring control > owner-java400-l@mi from a CL program to the JAVA Program > drange.com > > > 05/07/2001 04:55 ã > Please respond to > JAVA400-L > > > > > > > At 06:05 AM 7/5/2001, you wrote: > >I have written a Java program which calls a CL program residing on the > >AS/400. I am using JTopen 2.02 and IBM Tool box. If an error occurs in > >the CL program, the control is not returning to the Java program. The > >Java program will be hanging. Is there any way to get the control back to > >the Java program even when an error occurs in the CL program? > > Your CL program should monitor for the error message and deal with it ... > that way the program will not end in error. > > david > > > -- > | Internet: david@midrange.com > | WWW: http://david.falling-rock.org > | > | Expect me when you see me. > +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
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.