Show TOC

Developing an Application ClientLocate 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.

Figure 1: Application Client

The purpose of this tutorial is to create a simple application - a calculator with a single operation - addition. The whole application is annotation-based. That is why you do not need deployment descriptors.

First you have to create an EJB project. This provides you with the service. Then you create the application client that uses this service.

To create and package the application, open the SAP NetWeaver Developer Studio.

For the development of the entire application, use the Java EE perspective of the Development Studio. To open the perspective, choose Start of the navigation path Window Next navigation step Open Perspective Next navigation step Other Next navigation step Java EE End of the navigation path.

Prerequisites

System, Installed Applications, and Authorizations

  • SAP NetWeaver Developer Studio is installed.

  • AS Java is installed.

  • JDK 5.0 is installed.

  • You have administrative privileges to manage the configuration of the applications on the AS Java.

Knowledge

  • Java programming language

  • Basic understanding of EJB programming concepts.

  • You have access to the AS Java.

Procedure
  1. Create and implement and EJB project.

    More information: Creating and Implementing an EJB Project

  2. Create and implement the application client.

    More information: Creating and Implementing the Application Client

  3. Deploy the application to the application server.

    More information: Deploying the Application

  4. Run the application client

    To run the application, you have to create a new file with the name appclient_starter.xml. You can change the current example for any particular case.

    More information: Running the Application Client