I have an application that can be deployed as a web server's root application or a regular one with an application name. The class SimpleServerApp.as in old graniteds version (for ex. 3.0.0GA ) was able to auto discover servername, port and context root correctly using URL with default constructor at the run time. However this is not the case any more in 3.1.0.M1; In order to make the app work as a root app, I have to create the serverApp object as new SimpleServerApp("", false, null, null), while for non-root application, it is new SimpleServerApp(null, false, null, null); The change requires me to exam if the application is running as a root app and construct SimpleServerApp object accordingly. Is there a better way to handle this situation? It will be nice if we can use same set of parameters for both cases. Thanks!
Joanne