Is there a way to start, stop or restart applications running within tcserver using JMX or using a HTTP request? For example, in tomcat 6.0, the following can be done to start an application:
http://localhost:8080/manager/start?path=/examples
When I start the hyperic agent, I could not see any Mbeans defined for the agent process to start/stop a runtime instance within a tcserver.
A Tomcat (and tcserver probably as well) registers a MBean for every WebModule which looks like
Catalina:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/jolokia
where the domain name and name property depend on your installation and the WebModule. Each of those MBeans has a
start()
and astop()
operation.In case you are using a Jolokia agent, you can directly use an HTTP call like
(slashes needs to be escaped, single slash with /-/, double slash with /--/. See the Jolokia reference manual) for details.