Hi Denuwanthi, We have a requirement where we need to interfere/stop the server start up, > if a certain condition is not fulfilled during the bundle startup. > > For that. is it ok to use following approach inside the bundle service > component if the particular condition is not met? > bundleContext.getBundle(0).stop(); >
Instead of shutting down osgi container completely, can we control this by not registering the service if certain condition is not satisfied. So inside bundle service component, we check the condition before registering the service. If the condition not satisfied, we return without registering the services. Thanks Danesh > Or is there any other proper approach we can use? > > Thanks, > > -- > Denuwanthi De Silva > > -- *Danesh Kuruppu* Senior Software Engineer | WSO2 Email: dan...@wso2.com Mobile: +94 (77) 1690552 <+94%2077%20169%200552> Web: WSO2 Inc <https://wso2.com/signature>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev