How do you run multiple JVMs on a single machine? How do you call methods in a different JVM?
It sounds like your talking about having different methods within a single application run under different JVMs. This is not possible.
If you want to use different JVMs for different applications, you'll have to manually specify the path to the particular JRE when you start an app. Example:
$PATH_TO_FIRST_JVM/bin/java -jar application1.jar
$PATH_TO_DIFFERNT_JVM/bin/java -jar application2.jar
How do you run multiple JVMs on a single machine?
Just launch multiple java
processes.
How do you call methods in a different JVM?
Use any type of RPC framework (RMI, EJB, web service, etc.).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With