This constructor will get the context path from the application settings.
When it is not set the context path will be automatically resolved.
This should work in most cases, and support the following clustering
scheme
node1.mydomain.com[/appcontext]
node2.mydomain.com[/appcontext]
node3.mydomain.com[/appcontext]
If it is set then you can map to other context like in clusters
node1.mydomain.com/mycontext1/
node2.mydomain.com/mycontext2/
node3.mydomain.com/mycontext3/
mydomain.com/mycontext (load balancer)
or as a virtual server (app server and webserver)
appserver.com/context mapped to webserver/ (context path should be '/')
Parameters: application - The application object |