Show TOC

Object AliasesLocate this document in the navigation structure

Use

You can define an alias for an application and a service, generally for reasons of compatibility.

Alias are defined in the alias attribute of the <application> or <service> element in the deployment descriptor.

The following rules apply to the use of aliases:

  • An application alias can be used instead of the name of the application in all cases.

  • A component cannot have an alias, but you can use the application alias in the component's fully qualified name.

  • A service alias can be used instead of the name of the service. However, you must either use the service alias (without the application name or alias) or the service name preceded by the application name or alias.

Example

myApplication.war defines the following entries:

            <application alias="myAlias">
              <services>
                <service name="myService" alias="myServiceAlias"/>
              </services>
              <components>
                <component name="myComponent"/>
            </components>
            </application>
         

The following shows the valid names for each type of the portal objects defined above:

  • Application: myApplication or myAlias

  • Component: myApplication.myComponent , myAlias.myComponent

  • Service: myApplication.myService , myAlias.myService , myServiceAlias