If your Web Service bundle deployed to ServiceMix is using Spring configuration, you can get access to a BundleContext simply by adding a property (and setter method) to any bean:
<property name="bundleContext" ref="bundleContext" />
The BundleContext gives you access to a range of things, in your instance use either the getBundle
or getBundles
method to get the required Bundle object, then issue start/stop etc.