PATH  WebObjects 4.0 Documentation > What's New in WebObjects 4.0

Table of Contents Previous Section

Changes to Adaptor Configuration Files

The format of the private and public configuration files (WebObjects.conf) has changed slightly. Along with this format change come two conceptual changes:

If a client browser tries to access an application instance that isn't running, the adaptor attempts to perform load-balancing with all existing instances. For example, suppose a user bookmarked a URL that contained 4 as the instance number and tried to use that bookmark two weeks later when instance 4 is no longer running. Instead of failing, WebObjects simply uses one of the instances that is running.

The Application Instance Number

For security reasons, an application instance's host name and port number cannot be visible either in a page or in a URL. There is a one-to-one mapping between these values and an application's instance number in the WebObjects.conf file; this mapping is resolved by the adaptor. Because it is a one-to-one mapping, the instance number must be unique across a deployment environment for a given application name.

When the adaptor load-balances a request to an application at a given port and host, it assigns an application instance number and places it into the request . (Because of this, you now obtain the application instance number from the WORequest rather than from the WOApplication object.) Application instances take the instance number from the request and send that number back in the response URLs. As far as the application instance is concerned, the instance number could change with every request-the application instance wouldn't notice.

Table of Contents Next Section