int et = event.getType();
Bundle bundle = event.getBundle();
if (et == BundleEvent.STOPPED) {
ComActivator activator = FwkRuntime.getInstance()
.getBundleActivator(bundle.getBundleId());
if (activator instanceof WebComActivator) {
WebComActivator webActivator = (WebComActivator) activator;
jeeContainer.unregServletContext(webActivator
.getBundleServletContext());
try {
jeeContainer.refresh();
FwkActivator.getInstance().log(
"Removed web bundle service: "
+ webActivator.getBundleSymbleName(), 0,
false);
} catch (Exception e) {
// e.printStackTrace();
FwkActivator.getInstance().log(e);
}
}
}
if (et == BundleEvent.STARTED) {
ComActivator activator = FwkRuntime.getInstance()
.getBundleActivator(bundle.getBundleId());
if (activator instanceof WebComActivator) {
WebComActivator webActivator = (WebComActivator) activator;
if (!webActivator.isWebServiceStarted()) {
try {