Starting the container is of course not possible directly as the mbean server is only started when karaf is started. What you can do though is start a master instannce of karaf and use the admin/instance mbean to start and stop
child instances.

Christian


Am 21.03.2013 23:44, schrieb anair:
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.


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com

Reply via email to