Show TOC

Background documentationSample Logging Tutorial Locate this document in the navigation structure

 

This sample tutorial gives you an example of how to put logging functionality in a real application. Performing the steps, you:

  • develop a HelloWorld application (Web service), and view the result: a “Hello,...” name message.

  • can view the application logs in a SAP tool.

    In the example, you can view them with Log Viewer.

Procedure

  1. Create an EJB project for the HelloWorld application.

    More information:

    Creating an EJB Project for the HelloWorld Application

    Creating the HelloWorld EJB

  2. Expose the EJB.

    More information: Exposing the EJB as a Web Service

  3. Implement logging functionality.

    More information: Implementing Logs in the HelloWorld Application

  4. Deploy the logging-enabled application.

    More information: Deploying the HelloWorld Application

  5. Test the application.

    More information: Testing the HelloWorld Application

  6. View the logs.

    More information: Viewing Logs of the HelloWorld Application

Result

After performing the steps above, you have successfully created and deployed a sample application. The logs are available in the Log Viewer tool.

First step: Creating an EJB Project for the HelloWorld Application