If a component needs a name for the current instance of an Oracle ATG Web Commerce server, it can refer to the serverName
property of the /atg/dynamo/service/ServerName
component. The server can be named explicitly by setting the serverName
property directly, or the name can be built from the combination of the server hostname (obtained dynamically) and the DrpServer
port.
Services that require a server name should not set a server name property directly from this services serverName
property. Instead, they should obtain a reference to the /atg/dynamo/service/ServerName
component and call the serverName()
method. This forces the ServerName
component to be fully started, allowing the name to be built properly if necessary.
For more information about Oracle ATG Web Commerce servers, see the ATG Installation and Configuration Guide.