Set implicit baseURI in bind() in addition to start() so that Hrefs are correct

after an application was remounted.
This commit is contained in:
hns 2004-02-20 13:42:34 +00:00
parent 53a34d861a
commit 3a4877f84b

View file

@ -90,7 +90,6 @@ public class ApplicationManager implements XmlRpcHandler {
ndesc.app = appDesc.app; ndesc.app = appDesc.app;
ndesc.bind(); ndesc.bind();
descriptors.put(ndesc.appName, ndesc); descriptors.put(ndesc.appName, ndesc);
} }
} }
} catch (Exception mx) { } catch (Exception mx) {
@ -371,6 +370,11 @@ public class ApplicationManager implements XmlRpcHandler {
Naming.rebind("//:" + rmiPort + "/" + appName, new RemoteApplication(app)); Naming.rebind("//:" + rmiPort + "/" + appName, new RemoteApplication(app));
} }
// set application URL prefix if it isn't set in app.properties
if (!app.hasExplicitBaseURI()) {
app.setBaseURI(mountpoint);
}
// bind to Jetty HTTP server // bind to Jetty HTTP server
if (server.http != null) { if (server.http != null) {