Hi,
I would agree with you completely except that I have no choice in the tools I am using! The original programmer is no longer available and I have to tweak his baby. As I don't know any alternative methods, it should be quicker to learn as much about the tools I am using than to learn about other tools and re-implement the application.
Paul.
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of D*B
Sent: 28 September 2011 11:11
To: java400-l@xxxxxxxxxxxx
Subject: Re:Java-400 newbie needs help
Hi,
calling Java from RPG via JNI will startup a JVM in every Job using this and starting maybe hundreds of JVMs won't scale well and only IBM will be happy to sell lots of hardware. Every RuntimeException coming up from Java could not be handled in RPG and will freeze the JVM for all following JNI calls from RPG. The JVM will be started implicit by the RPG runtime when the first JNI call occurs and all following calls within this job have to use this JVM and the associated settings. Using JNI calls in both directions adds addtitional complexity, because RPGs Multi threading capabilities are very limited.
As a conclusion of this all, I would strongly recommend not to use JNI calls from RPG.
D*B
--
This is the Java Programming on and around the IBM i (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.
Scanned by MailDefender - managed email security from intY - www.maildefender.net
------------------------------------------------------------
Important
This email transmission and any files with it are strictly
confidential to the intended recipient and may be legally
privileged. Any views or opinions presented are solely
those of the author and do not necessarily represent those
of BHSF. If you are not the intended recipient, you must
not copy, disclose or distribute its contents in any way.
If you have received this e-mail in error, please notify
the sender and delete the e-mail from your system.
We have taken steps to ensure this e-mail and attachments
are free from any virus but do not accept any
responsibility once this e-mail has been transmitted. You
should scan any attachments for viruses.
No contract may be concluded on behalf of BHSF Limited by
e-mail.
Registered Office:
BHSF Limited
Gamgee House, 2 Darnley Road, Birmingham B16 8TE.
www.bhsf.co.uk
Registered in England number 35500.
BHSF is authorised and regulated by the Financial Services
Authority.
As an Amazon Associate we earn from qualifying purchases.