Hi Asha,

in org.apache.karaf:type=system,name=root, you can find the shutdown operation to stop Karaf.

For start/restart, it's not available in Karaf 2.2.x.

Since Karaf 2.3.x (so 2.3.0 ;)), in org.apache.karaf:type=system,name=root, you have the following operations:

halt() - to stop Karaf
halt(String time) - to stop Karaf at a given time
reboot() - to reboot Karaf
reboot(String time, boolean clean) - to reboot Karaf at a given time and eventually cleanup the data folder

Regards
JB

On 03/21/2013 11:44 PM, anair wrote:
Hello,

I have a requirement where we are required to control Karaf from outside the
container, like start/stop bundles, uninstall/install features or bundles. I
was able to do it via JMX using:
serverConn.invoke(new
ObjectName("org.apache.karaf:type=features,name=root"), installFeature, new
Object[] { <feature-name> }, new String[] { "java.lang.String" });

However, I could not find any command to start or stop the Karaf container
from outside via JMX. Is it possible to do this?

Any pointers/link to example will be greatly appreciated.

thanks,

Asha



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Start-Stop-Karaf-2-3-x-via-JMX-tp4028274.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to