I have a question on better way to avoid a bundle to start when starting services throw an exception.
I have a bean and a service declare as :
When in OSGI a BundleActivator.start() method throw an exception, the bundle refuse to start and come back to resolved state.
<bean id="vaultService" class="com.sample.confiance.vault.impl.VaultServiceImpl">
<property name="halService" ref="halService"/>
<osgi:service id="VaultOsgiService" ref="vaultService"
If my vaultService.start method throw an exception, bundle start anyway, ans my service is in an inconsistant state. Is there a way, my bundle don't start if start method throw an exception ?
Thanks for your reply