A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
Two instances of JVM
Joined: Jun 05, 2006
May 03, 2007 04:34:00
Could anybody tell me , what does it mean
Running two instances of JVM on same machin
This statement , i read (I forgot the source) regarding Threads
Cheers<br />-------------<br />Swapnil<br /> <br />SCJP5-81%<br /> <br />"Dictionary is the only place where Success come before Work"
Joined: Apr 14, 2004
May 03, 2007 04:35:00
Not an advanced question. Moving...
Joined: Oct 13, 2005
May 03, 2007 04:58:00
It is quite easy.
Open Command Prompt, navigate to wherever you have your
programs, run a program.
Open Command Prompt, navigate to wherever you have your Java programs, run a program.
If you can persuade your programs to keep running long enough (if you need keyboard input for example), you will have two JVMs running simultaneously.
More difficult. Each JVM opens a Socket (or the application on each JVM connects to a Socket), and the two applications send messages to each other.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Two instances of JVM
Running multiple programs in single JVM
Q about JVM
Multiple Tomcat on Same Machine(One JVM) + Total Initial Heap Size
Issue with JBoss logging for different jboss instances running on same machine
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015