/** Start an ear */ public void startEarDeploy(String name) { clearCache(); _earDeploy.update(); EarDeployController entry = _earDeploy.update(name); if (entry != null) entry.start(); clearCache(); }
/** Updates an ear deploy */ public void updateEarDeploy(String name) throws Throwable { clearCache(); _earDeploy.update(); EarDeployController entry = _earDeploy.update(name); if (entry != null) { entry.start(); Throwable configException = entry.getConfigException(); if (configException != null) throw configException; } clearCache(); }
/** Returns the current array of webApp entries. */ @Override public void generateController(String name, ArrayList<WebAppController> list) { if (_earContainer.isModified()) { _earContainer.update(); } for (EarDeployController earController : _earContainer.getControllers()) { WebAppController webAppController; webAppController = earController.findWebAppController(name); if (webAppController != null) { list.add(webAppController); return; } } }
/** Redeploys if modified. */ @Override public void update() { _earContainer.update(); }