Hi,
Can somebody tell me how to control(start and stop etc ) a java-app running on a different JVM from another app running on a different jvm.
Thanks
Regards,
Puru
Previously we implemented this using JMS, but in this case we cannot use JMS.
-
How to start/stop java app running on a different JVM (4 messages)
- Posted by: Puru Kk
- Posted on: February 22 2003 09:45 EST
Threaded Messages (4)
- How to start/stop java app running on a different JVM by Gal Binyamini on February 22 2003 11:44 EST
- How to start/stop java app running on a different JVM by Puru Kk on February 25 2003 19:52 EST
-
How to start/stop java app running on a different JVM by Gal Binyamini on February 25 2003 08:09 EST
- How to start/stop java app running on a different JVM by Puru Kk on February 27 2003 09:43 EST
-
How to start/stop java app running on a different JVM by Gal Binyamini on February 25 2003 08:09 EST
- How to start/stop java app running on a different JVM by Puru Kk on February 25 2003 19:52 EST
-
How to start/stop java app running on a different JVM[ Go to top ]
- Posted by: Gal Binyamini
- Posted on: February 22 2003 11:44 EST
- in response to Puru Kk
You can go by the ideas from this thread:
http://www.theserverside.com/discussion/thread.jsp?thread_id=17463
Instead of just opening the socket, also listen on it for "close" requests and stuff like that.
If you need something more elaborate thea just sending a few simple commands, you might want to consider using RMI instead (although that makes it harder for non-java stuff, like shell scripts, to close the VM without loading up a whole new VM to call the RMI close command).
Gal -
How to start/stop java app running on a different JVM[ Go to top ]
- Posted by: Puru Kk
- Posted on: February 25 2003 19:52 EST
- in response to Gal Binyamini
Thanks for your reply. I have used UDP IPMulticasting to send the message. It seems to be working ok, does anybody see anydrawbacks in using UDP ipmulticasting
Thanks
Puru
> You can go by the ideas from this thread:
> http://www.theserverside.com/discussion/thread.jsp?thread_id=17463
>
> Instead of just opening the socket, also listen on it for "close" requests and stuff like that.
> If you need something more elaborate thea just sending a few simple commands, you might want to consider using RMI instead (although that makes it harder for
non-java stuff, like shell scripts, to close the VM without loading up a whole new VM to call the RMI close command).
>
> Gal -
How to start/stop java app running on a different JVM[ Go to top ]
- Posted by: Gal Binyamini
- Posted on: February 25 2003 20:09 EST
- in response to Puru Kk
You would have to be in the same local network for the multicast to reach the running VM. Also, you would have to devise some sort of mechanism to recover from packet delivery errors, UDP won't do that for you.
Why did you decide to go with UDP (and multicasting) rather than TCP?
p.s. I'm not sure if multicasting would work on Windows machines with no network connection or a loopback driver installed (I mean you won't be able to stop the application from this isolated Windows machine).
Gal -
How to start/stop java app running on a different JVM[ Go to top ]
- Posted by: Puru Kk
- Posted on: February 27 2003 09:43 EST
- in response to Gal Binyamini
I wanted to stop a set of services with one command. So used UDP multicasting.
Puru