Rather than calling RPG at all depending on the process, it might be better to write a Java Program/Class and wrap a CL program or command around it.
We do this quite successfully. QSH and PASE get called in the background which is the equivalent of a new JVM being initiated.
We had problems with our RPG/Java mix programs at V7R1 and eliminated RPG from the mix for those.
Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site:
http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
----------------------------------------------------------------------
message: 1
date: Tue, 26 Mar 2013 13:08:58 -0400
from: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
subject: Re: no such method error
On Tue, 26 Mar 2013 at 10:29:48, Dan Kimmel <dkimmel@xxxxxxxxxxxxxxx> wrote:
RPG only starts a JVM once in a job. To stop and start the JVM, end the job and start a new one.
This is a system thing Dan - not RPG specific. Way back you could shut down the VM and reload but it caused too many problems in other areas so IBM killed it. Now it is one Job - one JVM.
There is a possibility that you could end the activation group where the JVM is running. Perhaps RPG will start a new JVM when it re-establishes the activation group. I have not tried this.
Nope - doesn't work - one job - one JVM.
Jon Paris
www.partner400.com
www.SystemiDeveloper.com