Show TOC

Procedure documentationDeveloping Application Clients Locate this document in the navigation structure

 

An application client is a standard Java EE component and, like other Java EE components (EJB, Servlets), it can use all services provided by the application server. The main difference from the other Java EE components is that the application client is running its own Java virtual machine.

An example about how to use the application client: Developing an Application Client

In the SAP NetWeaver Developer Studio, you create application client components using Application Client 5 Projects. It helps you organize the components of the application client, and its deployment descriptors.

Procedure

Creating an Application Client Project
  1. Choose   File   New   Project...   from the main menu.

  2. Choose   Java EE   Application Client Project  . Choose Next.

  3. Specify the project name.

  4. Set the project configurations in the Configuration field.

  5. Optionally, you can add the project to an Enterprise Application Project by choosing the Add project to an EAR option.

    You can always add the project to an Enterprise Application Project later.

  6. Choose Finish.

Adding Libraries to the Application Client
  1. Select the appClientModule folder of the Application Client Project in the Project Explorer.

  2. In the context menu, choose   Properties   Native Library   .

  3. In Location path, specify the directory where the libraries are located.

    Use External Folder if the libraries are located outside the Developer Studio.

    Use Workspace if their location is within the Developer Studio workspace.

  4. Choose Apply and then OK.

Editing the Deployment Descriptors
  1. In the appClientModule/META-INF directory of the Application Client Project, select the relevant deployment descriptor in the Project Explorer.

  2. Choose Open withXML Editor in the context menu.

  3. Using the context menu of the XML Editor, add the necessary elements to the descriptor, and save the changes.

Result

If you have not already done so, you can add the Application Client Project to an Enterprise Application Project. In this way, the application client will become part of the enterprise application EAR file.

More Information

appclient-j2ee-engine.xsd - Detailed description of the appclient-j2ee-engine.xml XML schema.