I want to be able to have one Windows NT/2000 service start 5 JVM's. Right now I have 5 services starting 5 JVM's. Can JNI 1.2 start more than one JVM in a process.

Davanum Srinivas

JDK 1.1 does not support creating more than one VM in a single process. But JDK1.2 onwards support multiple JVM's in the same process.
Start five threads and call JNI_CreateJavaVM in each of them. You can also use JNI_GetCreatedJavaVMs to get a list of existing JVM's.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact