It seems from your post that you are talking about remotely stopping a service/jvm.
Yes, JMX is a viable solution in this case.
Moving it to Intermediate forum. If you want to discuss specifically about JMX then we can move it to Other
Java APIs forum.