Show TOC

Procedure documentationDeveloping an Application Client 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.

This graphic is explained in the accompanying text.

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 3.0 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 Java EE perspective of the SAP NetWeaver Development Studio. To open the perspective, choose:

WindowOpen PerspectiveOtherJava EE.

Prerequisites

System, Installed Applications, and Authorizations
  • SAP NetWeaver Developer Studio is installed.

  • AS Java is installed.

  • JDK 5.0 of the SUN Microsystems 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 3.0 project.

    More information: Creating and Implementing an EJB 3.0 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