You can use OSGi api to start/stop a bundle.
the org.osgi.framework.BundleContext(to get a certain Bundle) and org.osgi.framework.Bundle(to start/stop this bundle) interface can do it.
You may need google a bit to get more details to know how to use those api.
Acutally the console command use those api as well underlying.
i see,thanks vary march for your help.
another Using remote instances question.
when i use command karaf@root> ssh:ssh -l karaf -P karaf -p 8101 184.108.40.206 has an error:
why is this error, can i helop you?
The default username/password for FUSE ESB is smx/smx but not karaf/karaf, you need change it accordingly.
ok,thanks very much, you are great！