Show TOC

Background documentationObject Aliases Locate this document in the navigation structure

 

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:

Syntax Syntax

  1. <application alias="myAlias">
  2.   <services>
  3.     <service name="myService" alias="myServiceAlias"/>
  4.   </services>
  5.   <components>
  6.     <component name="myComponent"/>
  7. </components>
  8. </application>
End of the code.

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