Pramati Technologies

Working with Built-in Pramati Server

Overview

Studio ships with a built-in Pramati Server, which is J2EE 1.3 certified and needs no setup. The built-in Server allows to build and debug J2EE components independently before integrating them with a project. It also enables to view diagnostic data using the Application Analyzer (App Analyzer).

Developers familiar with Pramati Server, can test-deploy their applications on Server via Studio. Studio automatically creates the required deployment descriptors while the application is being developed, and keeps the application in a ready-to-deploy state. It also creates connection pool, data-source, mail resource, connection factories, topics, and queues on the Server.

For more information on configuring server, refer to `Configuring a Development Server'.

What is App Analyzer

Application Analyzer (App Analyzer) diagnostics help to identify and analyze the time taken to complete a logical unit of operation and provide details on the time taken by business operations for execution. It helps in distributing time across various sub-tasks and eliminate bottlenecks at runtime.

Server performs the following functions:

The App Analyzer provides application level data profiling such as bean pool wait time and database response wait time. Historical data is available for the performance of both events. The rules engine supports event correlation between different nodes and provides easy customization. The web browser displays the occurring events. This enables to determine the condition of the system.

App Analyzer uses dynamic MBeans that conform to a specific interface and offers great flexibility at runtime, and are easy to implement. Service providers and developers can make their products manageable in a standard way without having to understand or invest in complex management systems. The MBeans generate and propagate notification events to components of the other levels.

This chapter discusses how to develop EJB 1.1 and EJB 2.0 applications using Studio, deploy them on the built-in Server, and use the App Analyzer.

Note: Each configured Server instance has its own tab in the output panel.
Configuring built-in Pramati Server

Built-in Server is configured in Studio by default. To make any changes in the default settings, go to Tools > Server Configuration.

Enter the following data:

Click OK to apply changes.

Starting or stopping built-in Server

Use Tools > Start Server to start the Server, and Tools > Stop Server to stop the server. The Server can also be started/stopped using the signal box. By default, the Server box in the Status Bar displays only the built-in Pramati Server, and all applications are deployed on this server.

Deploying applications on built-in Server

Deploy applications on built-in Pramati Server as JARs, WARs, and EARs, or as desk tree nodes and modules. Deploying from the desk tree nodes and modules uses the Express Development feature in Studio.

All applications are by default deployed on the built- in Server.

To deploy on the built- in Server:

Note: To deploy entity beans with container managed relationships on Pramati Server, ensure that the corresponding database constraints are defined.

Debugging applications on built-in Server

Debug applications deployed on built-in Server using the Studio Debugger. Studio provides normal, conditional, and remote debug options. JSP debugging assumes that the application has been deployed on the built-in Server.

Using the Application Analyzer

To enable the App Analyzer select Tools > Configure from the main menu. Select Server Diagnostics from the Available Tools list. Click Close. The tool is added as Application Diagnostics to the Tools menu.

The timing diagnostic details available are:

To start diagnostics in Studio:

  1. Select Tools > Application Diagnostics > Start Diagnostics from the main menu.
  2. Open a desk, right click and select Deploy. The App Analyzer starts diagnostics.
  3. To stop the App Analyzer, select Tools > Application Diagnostics > Stop Diagnostics from the main menu.
  4. Read the available Transaction, DataSources, and Application diagnostic data.
Note: For more information on the App Analyzer and interpreting diagnostic data, read `Pramati Server Diagnostics' in the Pramati Server 3.5 Administration Guide.

Pramati Technologies  © Copyright   TOCPREVNEXTINDEX