Hi Devs, Background -----------------
* Earlier, all the classes in the org.wso2.carbon.bridge package have been exported to the OSGi environment. This bridge package was running in the Carbon webapp class space. * SystemRestarter class which is responsible for restarting Carbon, was there in the bridge package. Carbon Core bundle invokes the SystemRestarter.restart() to restart the system forcefully or gracefully. This class is visible to Carbon core, because we have exposed all classes in the bridge package. Current Situation ------------------------ * Now we are removing the webapp support from Carbon. Hence we are moving all these utility classes to the org.wso2.carbon.server package. And also we decided not expose the classes in org.wso2.carbon.server package into the OSGi environment. Now in order to get this restart to work, the only solution I see is to use reflection and invoke the SystemRestarter.restart method. If there are no objections I will implement this. Thanks, Sameera. -- Sameera Jayasoma Technical Lead and Product Manager, WSO2 Carbon WSO2, Inc. (http://wso2.com) email: [email protected] blog: http://tech.jayasoma.org Lean . Enterprise . Middleware
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
