Show TOC

Developing Application ClientsLocate this document in the navigation structure

Use

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.

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

1. Create an Application Client Project

  1. Choose the New pushbutton.

  2. Select Start of the navigation path Java EE Next navigation step Application Client Project End of the navigation path. Choose Next .

  3. Specify the Project name .

  4. Set the project configurations in the Configuration field.

  5. (Optional) 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. (Optional) Choose Next to specify additional settings of the application client module.

  7. Choose Finish .

2. Add 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 .

  3. In the properties tree, select Native Library .

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

    • Choose External Folder to locate libraries outside the Developer Studio.

    • Choose Workspace to locate libraries within the Developer Studio workspace.

  5. Choose Apply , then choose OK .

3. Edit the Deployment Descriptors

  1. In the Project Explorer, expand the appClientModule/META-INF node of the Application Client project.

  2. In the context menu of the relevant deployment descriptor, choose Open .

  3. In the Design view of the XML editor, use the context menu to add the necessary elements to the descriptor. You can also edit the XML code directly in the Source view of the XML editor.

  4. Save your 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 becomes part of the enterprise application EAR file.

More Information

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

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