×
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.
I know that there can be only a single JVM per job, and once it is closed or ended in any way you have to end the job and start a new one to get a new JVM. So unless you can only use RUNJVA once per job, I don't think your statement is correct. In fact, since I start my JVM on job initialization, I wouldn't be able to use RUNJVA at all if it tried to start a new JVM every time. That just can't be right. I believe that RUNJVA will only start a new JVM if one has never existed for the job, and if a JVM is active it will use it. The only problem you will get is when a JVM was started and ended, then RUNJVA can't start a new JVM, and it can't attach to the running JVM either, so things fail.
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
<justin>
D*B: Currently I'm calling the Java using the QCMDEXC API to call RUNJVA. I want to go away from that is just use JNI (D-spec ExtProc(:*JAVA)). I'm assuming that QCMDEXC/RUNJVA starts a new JVM for every call, while JNI would reuse the JVM.
The Java is SVNKIT, which is an API for interacting with a Subversion server for code versioning.
</justin>
RUNJVA would start a new JVM for every call, making it very slow. CommandGate provides a command RUNJVARUN, wich is handled similar to RUNJVA, using a prestarted JVM (via AppServer4RPG). System.exit() would kill the JVM (same should happen, if you are calling the main of the cli via JNI). The technic with Security Manager is disabled at the moment inside CommandGate, but this could be changed very quick (just uncomment some lines). A first look to the svn.cli sources shows up, that this could work for this. To assist you further, I would need the complete command, you are using at the moment (RUNJVA ...), the needed jars and where to get to reproduce the situation, hopefully I will find a box with an appropriate java version and I could have a try.
D*B
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.