Show TOC Start of Content Area

Background documentation Deployment Service  Locate the document in its SAP Library structure

Use

The deployment service provides information that is required for the deployment of a Web Dynpro application. This service is represented by the IWDWebModule and IWDDeployableObject interface.

Deployable Units

IWDWebModule represents a WAR file The object of the WDDeployableObject class is a unit that can be deployed on a server like the Java Engine of the Application Server (a EAR file). Therefore, an object of this class represents a Web Dynpro archive that contains objects of the WDDeployableObjectPart class. The name of the object of the WDDeployableObject class is identical to the name of the Web Dynpro application deployed on the Java Engine. The WDDeployableObjectPart class can contain the following deployable Web Dynpro units:

      Web Dynpro application

      Web Dynpro component

      Web Dynpro configuration

      Component interface

      Web resources

You can access the resources of a Web Dynpro application, the application-specific configuration, or the application-specific class loader using the IWDDeployableObject interface.

Example

The following source code describes how to access the classes WDDeployableObject and WDDeployableObjectPart:

String type, name;

IWDWebModule modul = wdComponentAPI.getDeployableObjectPart().getWebModule();

WDDeployableObjectPart[] parts =    modul.getParts(WDDeployableObjectPartType.COMPONENT);

for ( int i=0; i<parts.length; i++) {

   type = parts[i].getType().toString();

   name =parts[i].getShortName();

}

This code gives you the type (in this case Component) and the names of the components as they are shown in the Web Dynpro Explorer.

End of Content Area